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

Function GetScaleMultiplier

cpp/src/gandiva/decimal_xlarge.cc:159–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 })();
158
159static int256_t GetScaleMultiplier(int scale) {
160 DCHECK_GE(scale, 0);
161 DCHECK_LE(scale, kMaxLargeScale);
162
163 return kLargeScaleMultipliers[scale];
164}
165
166// divide input by 10^reduce_by, and round up the fractional part.
167static int256_t ReduceScaleBy(int256_t in, int32_t reduce_by) {

Callers 15

CheckArrayMethod · 0.85
MakeRandomArrayMethod · 0.85
DecimalRescaleFunction · 0.85
DecimalFromStringFunction · 0.85
SimpleDecimalFromStringFunction · 0.85
ConstantsFunction · 0.85
RoundMethod · 0.85
CallMethod · 0.85
IncreaseScaleMethod · 0.85
ReduceScaleMethod · 0.85
ReduceScaleByFunction · 0.85

Calls

no outgoing calls

Tested by 1

CheckArrayMethod · 0.68