MCPcopy Create free account
hub / github.com/RenderKit/embree / MurmurHash3_mix

Function MurmurHash3_mix

tutorials/common/math/random_sampler.h:15–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13};
14
15__forceinline unsigned int MurmurHash3_mix(unsigned int hash, unsigned int k)
16{
17 const unsigned int c1 = 0xcc9e2d51;
18 const unsigned int c2 = 0x1b873593;
19 const unsigned int r1 = 15;
20 const unsigned int r2 = 13;
21 const unsigned int m = 5;
22 const unsigned int n = 0xe6546b64;
23
24 k *= c1;
25 k = (k << r1) | (k >> (32 - r1));
26 k *= c2;
27
28 hash ^= k;
29 hash = ((hash << r2) | (hash >> (32 - r2))) * m + n;
30
31 return hash;
32}
33
34__forceinline unsigned int MurmurHash3_finalize(unsigned int hash)
35{

Callers 2

renderPixelStandardFunction · 0.85
RandomSampler_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected