Look at this source:
http://cm.bell-labs.com/sources/plan...late/deflate.c
Especially, I was interested in a hash function. This implementation uses multiplicative hashing:
The value 0x6b43a9b5 (1799596469) is not even a prime, but I tested such constant with BALZ for 3-byte hashing and it is one of the best so far.Code:#define hashit(c) (((ulong)(c)&0xffffff)*0x6b43a9b5)>>(32-HashLog))![]()