get things checking on ia32

This commit is contained in:
Niko Matsakis 2011-10-25 13:13:55 -07:00 committed by Brian Anderson
parent c0e9c42bd2
commit f1bc9307d8
9 changed files with 96 additions and 97 deletions

View file

@ -42,7 +42,7 @@ hash(uintptr_t ptr) {
ptr = ptr ^ (ptr >> 14);
ptr = (ptr + (ptr << 2)) + (ptr << 4); // ptr * 21
ptr = ptr ^ (ptr >> 28);
ptr = ptr + (ptr << 31);
ptr = ptr + (ptr << 31);
# else
# error "hash() not defined for this pointer size"
# endif