2
3
4
5
6
7
8
9
10
11
12
13
17#include "../core/gimbal_decls.h"
21
22
23
27# define gblHash gblHashFnv1
33
34
35
52
53
54
55
uint32_t gblUnhash32Bit(GblHash hash)
Retrieve original 32-bit value from its hash.
GblHash gblHashSuperFast(const void *pData, size_t size)
Returns the hash of the given data buffer, calculated using the SuperFastHash algorithm.
GblHash gblHash16Bit(uint16_t value)
Calculate the hash of the given 16-bit value.
GblHash gblHashSip(const void *pData, size_t size)
Returns the hash of the given data buffer, calculated using the SIP algorithm.
GblHash gblHashJenkins(const void *pData, size_t size)
Returns the hash of the given data buffer, calculated using the Jenkins hashing algorithm.
GblHash gblHashPearson(const void *pData, size_t size)
Returns the hash of the given data buffer, calculated using the Pearson hashing algorithm.
GblHash gblHashCrc(const void *pData, size_t size)
Returns the CRC value of the given data buffer.
GblHash gblHashMd5(const void *pData, size_t size)
Returns the MD5 hash calculated for the given data buffer.
GblHash gblHashXx(const void *pData, size_t size)
Returns the hash of the given data buffer, calculated using the xxHash algorithm.
GblHash gblHashFnv1(const void *pData, size_t size)
Returns the hash of the given data buffer, calculated using the a custom FNV1 algorithm.
GblHash gblHashMurmur(const void *pData, size_t size)
Returns the hash of the given data buffer, calculated using the MurmurHash32 algorithm.
uint16_t gblHashCrc16BitPartial(const void *pData, size_t size, uint16_t *pPartial)
Calculates the hash of a given buffer continuing the partial hash from a previous iteration (or takin...
GblHash gblHash32Bit(uint32_t value)
Calculate the hash of a given 32-bit value.
GblHash gblHashSha1(const void *pData, size_t size)
Returns the SHA1 hash calculated for the given data buffer.
uint32_t GblHash
Type representing a calculated numeric hash across the codebase.