What integer hash function are good that accepts an integer hash key?
32-bits multiplicative method (very fast) see @rafal
#define hash32(x) ((x)*2654435761) #define H_BITS 24 // Hashtable size #define H_SHIFT (32-H_BITS) unsigned hashtab[1<> H_SHIFT
32-bits and 64-bits (good distribution) at : MurmurHash