| 537 | } |
| 538 | |
| 539 | size_t IndexForHash(size_t hash) const { |
| 540 | // Protect against undefined behavior (division by zero). |
| 541 | if (UNLIKELY(num_buckets_ == 0)) { |
| 542 | return 0; |
| 543 | } |
| 544 | return hash % num_buckets_; |
| 545 | } |
| 546 | |
| 547 | size_t NextIndex(size_t index) const { |
| 548 | if (UNLIKELY(++index >= num_buckets_)) { |
nothing calls this directly
no outgoing calls
no test coverage detected