Convert 64 bit function to 32 bit

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.

Unless I'm mistaken... DWORD is already 32 bit.

I'm not mistaken:
http://msdn.microsoft.com/en-us/library/cc230318.aspx
Last edited on
Topic archived. No new replies allowed.