diff options
| author | Tyge Løvset <[email protected]> | 2021-10-02 11:35:45 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-02 11:35:45 +0200 |
| commit | c952b72df544e5d4cb555140f4d0c3f251444b45 (patch) | |
| tree | eb450502f5313af5cea7f52450193c08ac2aad17 /include | |
| parent | 09a07970445dc34b986b1836679616ab8de81792 (diff) | |
| download | STC-modified-c952b72df544e5d4cb555140f4d0c3f251444b45.tar.gz STC-modified-c952b72df544e5d4cb555140f4d0c3f251444b45.zip | |
Fixed benchmarks regarding cmap find bug.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/cmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h index fd8711ad..1cb61d00 100644 --- a/include/stc/cmap.h +++ b/include/stc/cmap.h @@ -240,7 +240,7 @@ STC_DEF uint64_t c_default_hash(const void *key, size_t len) { #ifndef CMAP_H_INCLUDED
//STC_INLINE size_t fastrange_uint64_t(uint64_t x, uint64_t n)
// { uint64_t lo, hi; c_umul128(x, n, &lo, &hi); return hi; }
-#define fastrange_uint32_t(x, n) ((size_t) (((uint32_t)(x)*(uint64_t)(n)) >> 32))
+#define fastrange_uint32_t(x, n) (uint32_t)((uint32_t)(x)*(uint64_t)(n) >> 32)
#define chash_index_(h, entryPtr) ((entryPtr) - (h).table)
#endif
|
