lua-users home
lua-l archive

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


On Mon, Oct 14, 2019 at 5:51 AM D Burgess wrote:
> Perhaps the arithmetic shift can be offered as the >>> operator?
Excellent suggestion.


(x >>> k) == (x >> k) - ((x & math.mininteger) >> (k-1))