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

Function padding_for_alignment_row

cpp/src/arrow/compute/row/row_internal.h:107–111  ·  view source on GitHub ↗

Rounding up row offset to the nearest multiple of alignment value. Alignment must be a power of 2.

Source from the content-addressed store, hash-verified

105 /// Rounding up row offset to the nearest multiple of alignment value.
106 /// Alignment must be a power of 2.
107 static inline offset_type padding_for_alignment_row(offset_type row_offset,
108 int required_alignment) {
109 ARROW_DCHECK(std::popcount(static_cast<uint64_t>(required_alignment)) == 1);
110 return (-row_offset) & (required_alignment - 1);
111 }
112
113 /// Returns an array of offsets within a row of ends of varbinary fields.
114 inline const uint32_t* varbinary_end_array(const uint8_t* row) const {

Callers 1

GetRowOffsetsSelectedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected