diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-04-13 09:40:19 +0200 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-04-13 09:40:19 +0200 |
| commit | 86da0af02dde3fa4600071593a73b1b9a267fb9a (patch) | |
| tree | 637176cc506e6769484abec577c4eca390bdd215 | |
| parent | 7eeea94fba21396dcde5880a92e9f6ff3252e1ec (diff) | |
use full number
| -rw-r--r-- | cheesemap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cheesemap.c b/cheesemap.c index b0d723e..4f76714 100644 --- a/cheesemap.c +++ b/cheesemap.c @@ -175,7 +175,9 @@ static inline bitmask_t cm_group_match_tag(group_t group, cm_u8 tag) { /* ctrl's n stuff */ static inline cm_usize cm_h1(cm_hash_t hash) { - return (cm_usize)(hash >> CM_FP_SIZE); + // Primary hash function for indexing into the bucket array. + // On 32bit platforms, we ignore the top 32 bits of the hash + return (cm_usize)hash; } static inline cm_u8 cm_h2(cm_hash_t hash) { |
