Files
libucore/src/ucore_hashint.c
T
Nils O. Selåsdal cef7e3b057 prefix hash functions with uc_
fix prototype for hashuint
2012-11-01 00:01:53 +01:00

14 lines
199 B
C

#include "ucore_hash.h"
uint32_t
uc_hashuint(uint32_t a)
{
a = (a ^ 61) ^ (a >> 16);
a = a + (a << 3);
a = a ^ (a >> 4);
a = a * 0x27d4eb2d;
a = a ^ (a >> 15);
return a;
}