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

Function CeilDiv

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

Returns the ceil of value/divisor

Source from the content-addressed store, hash-verified

42
43// Returns the ceil of value/divisor
44constexpr int64_t CeilDiv(int64_t value, int64_t divisor) {
45 return (value == 0) ? 0 : 1 + (value - 1) / divisor;
46}
47
48// Return the number of bytes needed to fit the given number of bits
49constexpr int64_t BytesForBits(int64_t bits) {

Callers 15

MakeMethod · 0.85
MakeMethod · 0.85
TESTFunction · 0.85
FindImpMethod · 0.85
Decode1_avx2Function · 0.85
DecodeFixedLengthMethod · 0.85
DecodeVarLengthMethod · 0.85
InitMethod · 0.85
StartScanHashTableMethod · 0.85
OutputResultMethod · 0.85
SliceAndDeliverMorselMethod · 0.85

Calls

no outgoing calls

Tested by 6

TESTFunction · 0.68
BuildBloomFilterFunction · 0.68
TestBloomLargeFunction · 0.68
TESTFunction · 0.68
TYPED_TESTFunction · 0.68
TESTFunction · 0.68