mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
30% faster hashing speed
This commit is contained in:
1882
include/xxhash.h
1882
include/xxhash.h
File diff suppressed because it is too large
Load Diff
@ -158,7 +158,7 @@ static void at_exit(int signal) {
|
||||
|
||||
}
|
||||
|
||||
#define default_hash(a, b) XXH64(a, b, HASH_CONST)
|
||||
#define default_hash(a, b) XXH3_64bits(a, b)
|
||||
|
||||
/* Uninspired gcc plugin instrumentation */
|
||||
|
||||
|
@ -90,7 +90,8 @@ inline u32 hash32(u8 *key, u32 len, u32 seed) {
|
||||
|
||||
#endif
|
||||
|
||||
return (u32)XXH64(key, len, seed);
|
||||
(void)seed;
|
||||
return (u32)XXH3_64bits(key, len);
|
||||
|
||||
}
|
||||
|
||||
@ -102,7 +103,8 @@ inline u64 hash64(u8 *key, u32 len, u64 seed) {
|
||||
|
||||
#endif
|
||||
|
||||
return XXH64(key, len, seed);
|
||||
(void)seed;
|
||||
return XXH3_64bits(key, len);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user