| 1510 | } |
| 1511 | |
| 1512 | static inline void SetDistinctEstimateBit(uint8_t* bitmap, |
| 1513 | uint32_t row_index, uint32_t bit_index) { |
| 1514 | // We need to convert Bitmap[alpha,index] into the index of the string. |
| 1515 | // alpha tells which of the 32bit we've to jump to. |
| 1516 | // index then lead us to the byte and bit. |
| 1517 | uint32_t *int_bitmap = reinterpret_cast<uint32_t*>(bitmap); |
| 1518 | int_bitmap[row_index] |= (1 << bit_index); |
| 1519 | } |
| 1520 | |
| 1521 | static inline bool GetDistinctEstimateBit(uint8_t* bitmap, |
| 1522 | uint32_t row_index, uint32_t bit_index) { |
no outgoing calls
no test coverage detected