Skip to content

Commit

Permalink
NMHASH32: WIP-N+1
Browse files Browse the repository at this point in the history
  • Loading branch information
darkk committed Sep 26, 2024
1 parent 6fa4e1d commit 3464f16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Hashes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3464f16

Please sign in to comment.