summaryrefslogtreecommitdiff
path: root/lzf_c.c
diff options
context:
space:
mode:
authorroot <root>2007-11-13 10:48:02 +0000
committerroot <root>2007-11-13 10:48:02 +0000
commitd29dfa6df56424f073e0de300f6b2e40f5ace61a (patch)
tree88f31a9984f1c728adbf810764566e0e7f3f8000 /lzf_c.c
parent84e5a8dc51fb7e6e9e6044d9fd100cb91c451c9a (diff)
*** empty log message ***
Diffstat (limited to 'lzf_c.c')
-rw-r--r--lzf_c.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lzf_c.c b/lzf_c.c
index 95a245d..98371c5 100644
--- a/lzf_c.c
+++ b/lzf_c.c
@@ -48,13 +48,12 @@
# define FRST(p) (((p[0]) << 8) | p[1])
# define NEXT(v,p) (((v) << 8) | p[2])
# if ULTRA_FAST
-# define IDX(h) (((h >> (3*8 - HLOG)) - h ) & (HSIZE - 1))
+# define IDX(h) ((( h >> (3*8 - HLOG)) - h ) & (HSIZE - 1))
# elif VERY_FAST
-# define IDX(h) (((h >> (3*8 - HLOG)) - h*5) & (HSIZE - 1))
+# define IDX(h) ((( h >> (3*8 - HLOG)) - h*5) & (HSIZE - 1))
# else
# define IDX(h) ((((h ^ (h << 5)) >> (3*8 - HLOG)) - h*5) & (HSIZE - 1))
# endif
-/*# define IDX(h) ((ip[0] * 121 ^ ip[1] * 33 ^ ip[2] * 1) & (HSIZE-1))*/
#endif
/*
* IDX works because it is very similar to a multiplicative hash, e.g.