Skip to content

Commit

Permalink
Win fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Sep 8, 2023
1 parent 770e460 commit 1a797d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/third_party/include/binaryfusefilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ static inline uint64_t binary_fuse_mix_split(uint64_t key, uint64_t seed) {
return binary_fuse_murmur64(key + seed);
}
static inline uint64_t binary_fuse_rotl64(uint64_t n, unsigned int c) {
#ifdef _WIN32
return(_rotr64(n, c));
#else
return (n << (c & 63)) | (n >> ((-c) & 63));
#endif
}
static inline uint32_t binary_fuse_reduce(uint32_t hash, uint32_t n) {
// http://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/
Expand Down

0 comments on commit 1a797d7

Please sign in to comment.