Converting from int to int32_t and some cases bool.

This commit is contained in:
metallaxis committed 2026-05-07 10:36:14 +03:00
1 parent 77631299b8
commit f7680e872c
12 files changed
+51 -48

No files matched your search

+2 -2
View File
@@ -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) {