summaryrefslogtreecommitdiff
path: root/src/lj_tab.c
diff options
context:
space:
mode:
authorMike Pall <mike>2010-03-03 04:26:31 +0100
committerMike Pall <mike>2010-03-03 04:26:31 +0100
commit15c3bd7725e97e450f4cb5be7888bbea2133f90d (patch)
treee1613de35d03a34241fa9d296e120f1f13577fda /src/lj_tab.c
parent5fdb6e2e2035fe811821a7fb998ab810b21bba21 (diff)
downloadluajit-15c3bd7725e97e450f4cb5be7888bbea2133f90d.tar.gz
luajit-15c3bd7725e97e450f4cb5be7888bbea2133f90d.tar.bz2
luajit-15c3bd7725e97e450f4cb5be7888bbea2133f90d.zip
Improve performance of HREF/HREFK on x64.
Diffstat (limited to 'src/lj_tab.c')
-rw-r--r--src/lj_tab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_tab.c b/src/lj_tab.c
index 427b6118..fc44fdb4 100644
--- a/src/lj_tab.c
+++ b/src/lj_tab.c
@@ -22,7 +22,7 @@
22/* String hashes are precomputed when they are interned. */ 22/* String hashes are precomputed when they are interned. */
23#define hashstr(t, s) hashmask(t, (s)->hash) 23#define hashstr(t, s) hashmask(t, (s)->hash)
24 24
25#define hashnum(t, o) hashrot(t, (o)->u32.lo, (o)->u32.hi&0x7fffffff) 25#define hashnum(t, o) hashrot(t, (o)->u32.lo, ((o)->u32.hi << 1))
26#define hashgcref(t, r) hashrot(t, gcrefu(r), gcrefu(r)-0x04c11db7) 26#define hashgcref(t, r) hashrot(t, gcrefu(r), gcrefu(r)-0x04c11db7)
27 27
28/* Scramble the bits of numbers and pointers. */ 28/* Scramble the bits of numbers and pointers. */