MCPcopy Create free account
hub / github.com/apache/arrow / FixBitAccess

Method FixBitAccess

cpp/src/arrow/compute/util.h:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180class 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);

Callers

nothing calls this directly

Calls 1

BytesForBitsFunction · 0.85

Tested by

no test coverage detected