lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> But the bit32 library has arshift. It does seem a pity to deprecate
> something not
> superseded by something better. Maybe the 64-bit arithmetic right shift can be
> provided as math.arshift?

A call to math.arshift(x,d) will be even slower than x // 2^d. (The
whole point of an arithmetic shfift seems to be that it is faster than
x//2^d.)

-- Roberto