xxhash removed
This commit is contained in:
parent
abdc56d404
commit
b5c9de24ed
@ -11,8 +11,6 @@ extern "C" {
|
|||||||
|
|
||||||
uint32 hash_sdbm32(uint32 oldhash, void* buf, uint32 len);
|
uint32 hash_sdbm32(uint32 oldhash, void* buf, uint32 len);
|
||||||
uint32 hash_crc32(uint32 oldhash, void* buf, uint32 len);
|
uint32 hash_crc32(uint32 oldhash, void* buf, uint32 len);
|
||||||
uint32 hash_xxh32(uint32 oldhash, void* buf, uint32 len);
|
|
||||||
uint64 hash_xxh3_64(uint32 oldhash, void* buf, uint32 len);
|
|
||||||
|
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
#include "hash.h"
|
|
||||||
#define XXH_INLINE_ALL
|
|
||||||
#define XXH_STATIC_LINKING_ONLY /* access advanced declarations */
|
|
||||||
#define XXH_IMPLEMENTATION /* access definitions */
|
|
||||||
#include "./xxhash.h"
|
|
||||||
|
|
||||||
uint32 hash_xxh32(uint32 oldhash, void* buf, uint32 len){
|
|
||||||
return XXH32(buf,len,oldhash);
|
|
||||||
}
|
|
||||||
uint64 hash_xxh3_64(uint32 oldhash, void* buf, uint32 len){
|
|
||||||
return XXH3_64bits_withSeed(buf,len,oldhash);
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,5 @@ void test_hash_functions(){
|
|||||||
printf("\e[96m--------[test_hash_functions]---------\n");
|
printf("\e[96m--------[test_hash_functions]---------\n");
|
||||||
test_hashfunc(uint32, hash_crc32);
|
test_hashfunc(uint32, hash_crc32);
|
||||||
test_hashfunc(uint32, hash_sdbm32);
|
test_hashfunc(uint32, hash_sdbm32);
|
||||||
test_hashfunc(uint32, hash_xxh32);
|
|
||||||
test_hashfunc(uint64, hash_xxh3_64);
|
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user