| 136 | } |
| 137 | |
| 138 | void BloomFilter::Or(const BloomFilter& other) { |
| 139 | DCHECK_NE(this, &other); |
| 140 | DCHECK_NE(&other, ALWAYS_TRUE_FILTER); |
| 141 | if (other.AlwaysFalse()) return; |
| 142 | DCHECK_EQ( |
| 143 | block_bloom_filter_.log_space_bytes(), other.block_bloom_filter_.log_space_bytes()); |
| 144 | block_bloom_filter_.Or(other.block_bloom_filter_); |
| 145 | } |
| 146 | |
| 147 | void BloomFilter::RawOr(const BloomFilter& other) { |
| 148 | DCHECK_NE(this, &other); |