Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KX_HashedPtr.cpp

Go to the documentation of this file.
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 };

Generated at Thu Feb 1 13:03:05 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000