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

Function CeilDiv

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

Returns the ceil of value/divisor

Source from the content-addressed store, hash-verified

45
46// Returns the ceil of value/divisor
47constexpr int64_t CeilDiv(int64_t value, int64_t divisor) {
48 return (value == 0) ? 0 : 1 + (value - 1) / divisor;
49}
50
51// Return the number of bytes needed to fit the given number of bits
52constexpr 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 7

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