lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 5c9cb5f0b108435204d03f5b282dff8a18665b4b
parent fed236ca7fa066a51aae352968c5a916175b3716
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 26 Feb 2014 09:37:53 -0300

detail (comment)

Diffstat:
Mlbitlib.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 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))