diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-18 13:02:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-18 13:02:56 -0300 |
commit | 60c83ded3080a23bc661ab440c36d0a71b399e2e (patch) | |
tree | 0aa24b14c1215541b52e7885fd2f2c41aa128a06 /lobject.h | |
parent | 07948c3181702c55b7b36069ca519b54371a4ab7 (diff) | |
download | lua-60c83ded3080a23bc661ab440c36d0a71b399e2e.tar.gz lua-60c83ded3080a23bc661ab440c36d0a71b399e2e.tar.bz2 lua-60c83ded3080a23bc661ab440c36d0a71b399e2e.zip |
small optimization for sizes of array constructors
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.156 2002/12/19 11:11:55 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.157 2003/02/11 10:46:24 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -323,7 +323,8 @@ typedef struct Table { | |||
323 | extern const TObject luaO_nilobject; | 323 | extern const TObject luaO_nilobject; |
324 | 324 | ||
325 | int luaO_log2 (unsigned int x); | 325 | int luaO_log2 (unsigned int x); |
326 | 326 | int luaO_int2fb (unsigned int x); | |
327 | #define fb2int(x) (((x) & 7) << ((x) >> 3)) | ||
327 | 328 | ||
328 | int luaO_rawequalObj (const TObject *t1, const TObject *t2); | 329 | int luaO_rawequalObj (const TObject *t1, const TObject *t2); |
329 | int luaO_str2d (const char *s, lua_Number *result); | 330 | int luaO_str2d (const char *s, lua_Number *result); |