diff options
author | root <root> | 2005-04-14 20:38:50 +0000 |
---|---|---|
committer | root <root> | 2005-04-14 20:38:50 +0000 |
commit | 53bcbc038f83643efad0e22dab173c064127cd48 (patch) | |
tree | 12f014d36ddec75710a9ce247ec2408f3f001f23 /lzf_c.c | |
parent | 52d0d80a5d826b0f53ea4c00d2577ea2e4baba8f (diff) |
*** empty log message ***rel-1_51
Diffstat (limited to 'lzf_c.c')
-rw-r--r-- | lzf_c.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -46,9 +46,11 @@ * the hashing function might seem strange, just believe me * it works ;) */ -#define FRST(p) (((p[0]) << 8) | p[1]) -#define NEXT(v,p) (((v) << 8) | p[2]) -#define IDX(h) ((((h ^ (h << 5)) >> (3*8 - HLOG)) - h*5) & (HSIZE - 1)) +#ifndef FRST +# define FRST(p) (((p[0]) << 8) | p[1]) +# define NEXT(v,p) (((v) << 8) | p[2]) +# define IDX(h) ((((h ^ (h << 5)) >> (3*8 - HLOG)) - h*5) & (HSIZE - 1)) +#endif /* * IDX works because it is very similar to a multiplicative hash, e.g. * ((h * 57321 >> (3*8 - HLOG)) & (HSIZE - 1)) @@ -73,8 +75,8 @@ * compressed format * * 000LLLLL <L+1> ; literal - * LLLOOOOO oooooooo ; backref L - * 111OOOOO LLLLLLLL oooooooo ; backref L+7 + * LLLooooo oooooooo ; backref L + * 111ooooo LLLLLLLL oooooooo ; backref L+7 * */ |