Moved code and assets for the game to a seperate folder. Moved jansson and raylib to third_party.
This commit is contained in:
13
src/game/shared/wang_hash.h
Normal file
13
src/game/shared/wang_hash.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef WANG_HASH_H
|
||||
#define WANG_HASH_H
|
||||
|
||||
static inline uint32_t wang_hash(uint32_t v) {
|
||||
v = (v ^ 61) ^ (v >> 16);
|
||||
v = v + (v << 3);
|
||||
v = v ^ (v >> 4);
|
||||
v = v * 0x27d4eb2d;
|
||||
v = v ^ (v >> 15);
|
||||
return v;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user