From 3464f16c06682e93dddcb2622f597e3bf9f529c7 Mon Sep 17 00:00:00 2001 From: Leonid Evdokimov <leon@darkk.net.ru> Date: Thu, 26 Sep 2024 17:54:34 +0300 Subject: [PATCH] NMHASH32: WIP-N+1 --- Hashes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Hashes.cpp b/Hashes.cpp index 8b054318..42424513 100644 --- a/Hashes.cpp +++ b/Hashes.cpp @@ -1317,10 +1317,12 @@ void nmhash32_test ( const void * key, int len, uint32_t seed, void * out ) { ((uint16_t*)accX)[i] *= ((uint16_t*)__NMH_M1_V)[i]; // ??? } for (unsigned i = 0; i < COUNT_OF(accX); i++) printf("1: %4d %08x\n", i, accX[i]); +#if 0 for (i = 0; i < nbGroups; ++i) { accX[i] ^= accX[i] << 5 ^ accX[i] >> 13; // ??? } for (unsigned i = 0; i < COUNT_OF(accX); i++) printf("2: %4d %08x\n", i, accX[i]); +#endif sumhash32(accX, sizeof(accX), 0, &oh); printf("sumhash32(accX) = %x\n", oh); sumhash32(accY, sizeof(accY), 0, &oh); printf("sumhash32(accY) = %x\n", oh);