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

Function GetBitFromByte

cpp/src/arrow/util/bit_util.h:178–180  ·  view source on GitHub ↗

Gets the i-th bit from a byte. Should only be used with i <= 7.

Source from the content-addressed store, hash-verified

176
177// Gets the i-th bit from a byte. Should only be used with i <= 7.
178static constexpr bool GetBitFromByte(uint8_t byte, uint8_t i) {
179 return byte & kBitmask[i];
180}
181
182template <typename Uint>
183struct CopyBitsParams {

Callers 1

VisitBitsUnrolledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected