summaryrefslogtreecommitdiff
path: root/lbitlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-26 09:38:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-26 09:38:18 -0300
commit5c9cb5f0b108435204d03f5b282dff8a18665b4b (patch)
tree2b5d52f7d83f6b5d5e8441e45d8fdef5a48ed3ba /lbitlib.c
parentfed236ca7fa066a51aae352968c5a916175b3716 (diff)
downloadlua-5c9cb5f0b108435204d03f5b282dff8a18665b4b.tar.gz
lua-5c9cb5f0b108435204d03f5b282dff8a18665b4b.tar.bz2
lua-5c9cb5f0b108435204d03f5b282dff8a18665b4b.zip
detail (comment)
Diffstat (limited to 'lbitlib.c')
-rw-r--r--lbitlib.c8
1 files 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 @@
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