MCPcopy Create free account
hub / github.com/IoLanguage/io / UArray_calcOddHash

Function UArray_calcOddHash

libs/basekit/source/UArray_math.c:524–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522// even/odd hashes for cuckoo hashtables
523
524uintptr_t UArray_calcOddHash(UArray *self) {
525 return UArray_superfastHash(self) | 0x1; // ensures odd result
526}
527
528uintptr_t UArray_calcEvenHash(UArray *self) {
529 return UArray_fnvHash(self) << 1; // ensures odd result

Callers 1

UArray_oddHashFunction · 0.85

Calls 1

UArray_superfastHashFunction · 0.85

Tested by

no test coverage detected