| 180 | class TailSkipForSIMD { |
| 181 | public: |
| 182 | static int64_t FixBitAccess(int num_bytes_accessed_together, int64_t num_rows, |
| 183 | int bit_offset) { |
| 184 | int64_t num_bytes = bit_util::BytesForBits(num_rows + bit_offset); |
| 185 | int64_t num_bytes_safe = |
| 186 | std::max(static_cast<int64_t>(0LL), num_bytes - num_bytes_accessed_together + 1); |
| 187 | int64_t num_rows_safe = |
| 188 | std::max(static_cast<int64_t>(0LL), 8 * num_bytes_safe - bit_offset); |
| 189 | return std::min(num_rows_safe, num_rows); |
| 190 | } |
| 191 | static int64_t FixBinaryAccess(int num_bytes_accessed_together, int64_t num_rows, |
| 192 | int64_t length) { |
| 193 | int64_t num_rows_to_skip = bit_util::CeilDiv(length, num_bytes_accessed_together); |
nothing calls this directly
no test coverage detected