diff options
| -rw-r--r-- | lbitlib.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbitlib.c,v 1.21 2013/07/09 17:49:50 roberto Exp roberto $ | 2 | ** $Id: lbitlib.c,v 1.22 2013/07/09 18:31:01 roberto Exp roberto $ |
| 3 | ** Standard library for bitwise operations | 3 | ** Standard library for bitwise operations |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -19,7 +19,11 @@ | |||
| 19 | #endif | 19 | #endif |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | 22 | /* | |
| 23 | ** a lua_Unsigned with its first LUA_NBITS bits equal to 1. (Shift must | ||
| 24 | ** be made in two parts to avoid problems when LUA_NBITS is equal to the | ||
| 25 | ** number of bits in a lua_Unsigned.) | ||
| 26 | */ | ||
| 23 | #define ALLONES (~(((~(lua_Unsigned)0) << (LUA_NBITS - 1)) << 1)) | 27 | #define ALLONES (~(((~(lua_Unsigned)0) << (LUA_NBITS - 1)) << 1)) |
| 24 | 28 | ||
| 25 | 29 | ||
