From 60c83ded3080a23bc661ab440c36d0a71b399e2e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 18 Feb 2003 13:02:56 -0300 Subject: small optimization for sizes of array constructors --- lobject.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 90533240..420eb6a9 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.156 2002/12/19 11:11:55 roberto Exp roberto $ +** $Id: lobject.h,v 1.157 2003/02/11 10:46:24 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -323,7 +323,8 @@ typedef struct Table { extern const TObject luaO_nilobject; int luaO_log2 (unsigned int x); - +int luaO_int2fb (unsigned int x); +#define fb2int(x) (((x) & 7) << ((x) >> 3)) int luaO_rawequalObj (const TObject *t1, const TObject *t2); int luaO_str2d (const char *s, lua_Number *result); -- cgit v1.2.3-55-g6feb