00001 00002 #include "KX_HashedPtr.h" 00003 00004 unsigned int KX_Hash(unsigned int inDWord) 00005 { 00006 unsigned int key = inDWord; 00007 key += ~(key << 16); 00008 key ^= (key >> 5); 00009 key += (key << 3); 00010 key ^= (key >> 13); 00011 key += ~(key << 9); 00012 key ^= (key >> 17); 00013 return key; 00014 };