diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-26 09:38:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-26 09:38:18 -0300 |
commit | 5c9cb5f0b108435204d03f5b282dff8a18665b4b (patch) | |
tree | 2b5d52f7d83f6b5d5e8441e45d8fdef5a48ed3ba /lbitlib.c | |
parent | fed236ca7fa066a51aae352968c5a916175b3716 (diff) | |
download | lua-5c9cb5f0b108435204d03f5b282dff8a18665b4b.tar.gz lua-5c9cb5f0b108435204d03f5b282dff8a18665b4b.tar.bz2 lua-5c9cb5f0b108435204d03f5b282dff8a18665b4b.zip |
detail (comment)
Diffstat (limited to 'lbitlib.c')
-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 | ||