Merge pull request #113 from tesselode/fix-multi-targets
[wdl/wdl-ol.git] / WDL / fnv64.h
blob2ddf17c3ed5082a9c35cb860d5abf9b95207aa5e
1 #ifndef _WDL_FNV64_H_
2 #define _WDL_FNV64_H_
4 #include "wdltypes.h"
6 #define WDL_FNV64_IV WDL_UINT64_CONST(0xCBF29CE484222325)
8 static WDL_UINT64 WDL_FNV64(WDL_UINT64 h, const unsigned char* data, int sz)
10 int i;
11 for (i=0; i < sz; ++i)
13 h *= WDL_UINT64_CONST(0x00000100000001B3);
14 h ^= data[i];
16 return h;
18 #endif