Skip to content

Commit

Permalink
Merge branch 'master' into soroban_tests_bldb
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkozh authored Sep 10, 2024
2 parents bf72713 + dacd02c commit c64a8a5
Show file tree
Hide file tree
Showing 9 changed files with 1,017 additions and 680 deletions.
6 changes: 3 additions & 3 deletions lib/binaryfusefilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ template <typename T> class binary_fuse_t
uint64_t h = binary_fuse_mulhi(hash, SegmentCountLength);
h += index * SegmentLength;
// keep the lower 36 bits
uint64_t hh = hash & ((1UL << 36) - 1);
uint64_t hh = hash & ((1ULL << 36) - 1);
// index 0: right shift by 36; index 1: right shift by 18; index 2: no
// shift
h ^= (size_t)((hh >> (36 - 18 * index)) & SegmentLengthMask);
Expand Down Expand Up @@ -289,9 +289,9 @@ template <typename T> class binary_fuse_t
{
blockBits += 1;
}
uint32_t block = ((uint32_t)1 << blockBits);
uint32_t block = (1ul << blockBits);

std::vector<uint32_t> startPos(1 << blockBits);
std::vector<uint32_t> startPos(block);
uint32_t h012[5];

reverseOrder[size] = 1;
Expand Down
Loading

0 comments on commit c64a8a5

Please sign in to comment.