if anyone can help me converting this code into a 32 bit function:
MAX_UNSIGNED quantum_hash64(MAX_UNSIGNED key, int width)
{
MAX_UNSIGNED k32;
k32 = (key & 0xFFFFFFFF) ^ (key >> 32);
k32 *= 0x9e370001UL;
k32 = k32 >> (32-width);
return k32;
}
I defined MAX_UNSIGNED like this:
typedef DWORD MAX_UNSIGNED.
Thanks a lot.
Last edited on