lua-users home
lua-l archive

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

> On 15 May 2017, at 01:13, Sean Conner <> wrote:
> Shifting is just multiplication or division by two.  At the CPU level,
> there is a distinction made between shifts (left (multiplication) which
> shifts in 0s and right (division) which shifts in the sign bit) and rotates
> (shifts the bits, rotating in the carry bit).
> -spc

What I really meant is that a shift operator which disallows shifting out (all) bits would be less-than-useful.