quick fix to improve "hashing" of pointers (discard 4 least significant bits)

This commit is contained in:
Sven M. Hallberg 2013-05-08 16:07:51 +02:00
parent 66b0ed7bf1
commit 2943cfdfdd

View file

@ -241,5 +241,5 @@ bool h_eq_ptr(const void *p, const void *q) {
}
HHashValue h_hash_ptr(const void *p) {
return (uintptr_t)p;
return (uintptr_t)p >> 4;
}