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

Function RoundDown

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

Returns 'value' rounded down to the nearest multiple of 'factor'

Source from the content-addressed store, hash-verified

94
95// Returns 'value' rounded down to the nearest multiple of 'factor'
96constexpr int64_t RoundDown(int64_t value, int64_t factor) {
97 return (value / factor) * factor;
98}
99
100// Returns 'value' rounded up to the nearest multiple of 'factor' when factor
101// is a power of two.

Callers 10

operator()Method · 0.85
SumMethod · 0.85
SumMethod · 0.85
SumMethod · 0.85
SetBitmapImplFunction · 0.85
CoveringBytesFunction · 0.85
VisitBitmapMethod · 0.85
VisitFixedWidthArrayMethod · 0.85
CountSetBitsFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

operator()Method · 0.68
TESTFunction · 0.68