From 93e5768218245272857421e005a4cf086c4ba351 Mon Sep 17 00:00:00 2001 From: Leonid Evdokimov Date: Thu, 26 Sep 2024 16:09:10 +0300 Subject: [PATCH] WIP2 --- Hashes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Hashes.cpp b/Hashes.cpp index 980b0d9e..7320be45 100644 --- a/Hashes.cpp +++ b/Hashes.cpp @@ -1293,6 +1293,8 @@ void nmhash32_test ( const void * key, int len, uint32_t seed, void * out ) { NMH_ALIGN(NMH_ACC_ALIGN) uint32_t accX[sizeof(NMH_ACC_INIT)/sizeof(*NMH_ACC_INIT)]; NMH_ALIGN(NMH_ACC_ALIGN) uint32_t accY[sizeof(accX)/sizeof(*accX)]; printf("sizeof_NMH_ACC_INIT: %u\ncountof_NMH_ACC_INIT: %u\nsizeof(accX): %u\nsizeof(accY): %u\n", sizeof_NMH_ACC_INIT, countof_NMH_ACC_INIT, sizeof(accX), sizeof(accY)); + const uint32_t x = NMHASH32_long(NMH_ACC_INIT, sizeof(NMH_ACC_INIT), 42); + printf("NMHASH32_long(NMH_ACC_INIT, %u, 42) = %x\n", sizeof(NMH_ACC_INIT), x); once = true; } const uint32_t v = NMHASH32 (key, (const size_t) len, seed);