From 5c9cb5f0b108435204d03f5b282dff8a18665b4b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 26 Feb 2014 09:38:18 -0300 Subject: detail (comment) --- lbitlib.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lbitlib.c b/lbitlib.c index 76d5358e..bca7ba43 100644 --- a/lbitlib.c +++ b/lbitlib.c @@ -1,5 +1,5 @@ /* -** $Id: lbitlib.c,v 1.21 2013/07/09 17:49:50 roberto Exp roberto $ +** $Id: lbitlib.c,v 1.22 2013/07/09 18:31:01 roberto Exp roberto $ ** Standard library for bitwise operations ** See Copyright Notice in lua.h */ @@ -19,7 +19,11 @@ #endif - +/* +** a lua_Unsigned with its first LUA_NBITS bits equal to 1. (Shift must +** be made in two parts to avoid problems when LUA_NBITS is equal to the +** number of bits in a lua_Unsigned.) +*/ #define ALLONES (~(((~(lua_Unsigned)0) << (LUA_NBITS - 1)) << 1)) -- cgit v1.2.3-55-g6feb