Files
libucore/src/ucore_hashint.c
T
2012-10-29 23:07:32 +01:00

14 lines
198 B
C

#include "ucore_hash.h"
uint32_t
uc_hashint(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;
}