Add comments explaining the hashing algorithms
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
|
|
||||||
// Defines to pick which hash algorithm to use for the PICA (For hashing shaders, etc)
|
// Defines to pick which hash algorithm to use for the PICA (For hashing shaders, etc)
|
||||||
// Please only define one of them
|
// Please only define one of them
|
||||||
|
// Available algorithms:
|
||||||
|
// xxh3: 64-bit non-cryptographic hash using SIMD, default.
|
||||||
|
// Google CityHash64: 64-bit non-cryptographic hash, generated using regular 64-bit arithmetic
|
||||||
|
|
||||||
//#define PANDA3DS_PICA_CITYHASH
|
//#define PANDA3DS_PICA_CITYHASH
|
||||||
#define PANDA3DS_PICA_XXHASH3
|
#define PANDA3DS_PICA_XXHASH3
|
||||||
|
|
||||||
@@ -13,4 +17,4 @@ namespace PICAHash {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
HashType computeHash(const char* buf, std::size_t len);
|
HashType computeHash(const char* buf, std::size_t len);
|
||||||
} // namespace PICAHash
|
} // namespace PICAHash
|
||||||
Reference in New Issue
Block a user