We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
and
1 parent f9ea7cf commit d6ce39dCopy full SHA for d6ce39d
absl/container/internal/raw_hash_set.h
@@ -451,7 +451,9 @@ class PerTableSeed {
451
// The number of bits in the seed.
452
// It is big enough to ensure non-determinism of iteration order.
453
// We store the seed inside a uint64_t together with size and other metadata.
454
- static constexpr size_t kBitCount = 19;
+ // Using 16 bits allows us to save one `and` instruction in H1 (we use movzwl
455
+ // instead of movq+and).
456
+ static constexpr size_t kBitCount = 16;
457
458
// Returns the seed for the table. Only the lowest kBitCount are non zero.
459
size_t seed() const { return seed_; }
0 commit comments