small optimization for table size in machines with double allignment

This commit is contained in:
Roberto Ierusalimschy
2004-10-06 15:34:16 -03:00
parent 652f885c30
commit bd38017ddf
7 changed files with 48 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltable.h,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $
** $Id: ltable.h,v 2.2 2004/03/26 14:02:41 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -13,6 +13,9 @@
#define gnode(t,i) (&(t)->node[i])
#define gkey(n) (&(n)->i_key)
#define gval(n) (&(n)->i_val)
#define gnext(n) ((n)->i_key.next)
#define key2tval(n) (cast(const TValue *, gkey(n)))
const TValue *luaH_getnum (Table *t, int key);