lua-users home
lua-l archive

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


On Wed, Mar 26, 2014 at 9:50 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> A call to math.arshift(x,d) will be even slower than x // 2^d.

... but more readable on some contexts

disclaimer, i'm firmly in the camp of "not care about arithmethic
shift".  to me, shift is a pure bit operation, "signed" and
"arithmetic" are meanings attributed on top of the underlying bits.

-- 
Javier