diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 12:17:46 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 12:17:46 +0200 |
commit | 461481e6bb8149c07121eb85a984e6393fa2b80d (patch) | |
tree | 7854a3e7415bf03f3f3f3333ce36451e697807a6 /test | |
parent | 53d61d8c52773fc10345282b499d2a45740fcaa8 (diff) |
add hash() member function to global_coords
Diffstat (limited to 'test')
-rw-r--r-- | test/hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hash.cpp b/test/hash.cpp index b5eed2b0..63a2f568 100644 --- a/test/hash.cpp +++ b/test/hash.cpp @@ -44,7 +44,7 @@ template<int16_t CoordMax, int8_t ZMax, uint32_t MaxCollisions> for (int8_t k = 0; k <= ZMax; k++) { auto p = global_coords{i, j, k}; - auto h = hash_buf(&p, sizeof p); + auto h = p.hash(); h %= BucketCount; auto ref = bitset[h]; if (ref) [[unlikely]] |