| 177 | } |
| 178 | |
| 179 | inline uint16_t* TableEntry4ByteMatch(uint16_t* table, uint32_t bytes, |
| 180 | uint32_t mask) { |
| 181 | constexpr uint32_t kMagic = 2654435761U; |
| 182 | const uint32_t hash = (kMagic * bytes) >> (32 - kMaxHashTableBits); |
| 183 | return reinterpret_cast<uint16_t*>(reinterpret_cast<uintptr_t>(table) + |
| 184 | (hash & mask)); |
| 185 | } |
| 186 | |
| 187 | inline uint16_t* TableEntry8ByteMatch(uint16_t* table, uint64_t bytes, |
| 188 | uint32_t mask) { |
no outgoing calls
no test coverage detected