aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-02-18 13:02:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-02-18 13:02:56 -0300
commit60c83ded3080a23bc661ab440c36d0a71b399e2e (patch)
tree0aa24b14c1215541b52e7885fd2f2c41aa128a06 /lobject.h
parent07948c3181702c55b7b36069ca519b54371a4ab7 (diff)
downloadlua-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index 90533240..420eb6a9 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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 {
323extern const TObject luaO_nilobject; 323extern const TObject luaO_nilobject;
324 324
325int luaO_log2 (unsigned int x); 325int luaO_log2 (unsigned int x);
326 326int luaO_int2fb (unsigned int x);
327#define fb2int(x) (((x) & 7) << ((x) >> 3))
327 328
328int luaO_rawequalObj (const TObject *t1, const TObject *t2); 329int luaO_rawequalObj (const TObject *t1, const TObject *t2);
329int luaO_str2d (const char *s, lua_Number *result); 330int luaO_str2d (const char *s, lua_Number *result);