Re: [PATCH 2/7] libihash: use an integer hash function on the keys

2014-05-13 Thread Samuel Thibault
Justus Winter, le Tue 13 May 2014 21:02:51 +0200, a écrit : > Use an integer hash function to derive the index from the key. This > should reduce the number of collisions. Ack. > * libihash/ihash.c (hash_int32): New function. > (find_index): Use hash_int32 on the key to derive the index. > (add_

[PATCH 2/7] libihash: use an integer hash function on the keys

2014-05-13 Thread Justus Winter
Use an integer hash function to derive the index from the key. This should reduce the number of collisions. * libihash/ihash.c (hash_int32): New function. (find_index): Use hash_int32 on the key to derive the index. (add_one): Likewise. --- libihash/ihash.c | 17 +++-- 1 file changed