Converting from int to int32_t and some cases bool.
This commit is contained in:
12 files changed
+51
-48
No files matched your search
+2
-2
@@ -1,10 +1,10 @@
|
||||
#include "hash.h"
|
||||
|
||||
unsigned int hash_three128(uint128_t a, uint128_t b, uint128_t c) {
|
||||
uint32_t hash_three128(uint128_t a, uint128_t b, uint128_t c) {
|
||||
uint128_t x = a + (uint128_t)0x9e3779b97f4a7c15ULL + ((uint128_t)0x9e3779b97f4a7c15ULL << 64);
|
||||
x ^= b + ((uint128_t)0xbf58476d1ce4e5b9ULL + ((uint128_t)0xbf58476d1ce4e5b9ULL << 64)) + (x << 6) + (x >> 2);
|
||||
x ^= c + ((uint128_t)0x94d049bb133111ebULL + ((uint128_t)0x94d049bb133111ebULL << 64)) + (x << 6) + (x >> 2);
|
||||
return (unsigned int)(x % HASH_SIZE);
|
||||
return (uint32_t)(x % HASH_SIZE);
|
||||
}
|
||||
|
||||
void sort_triplet(int128_t* a, int128_t* b, int128_t* c) {
|
||||
|
||||
Reference in new issue
Block a user