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

Function CheckAndReduceScale

cpp/src/gandiva/precompiled/decimal_ops.cc:45–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static BasicDecimal128 CheckAndReduceScale(const BasicDecimal128& in, int32_t delta) {
46 return (delta <= 0) ? in : in.ReduceScaleBy(delta);
47}
48
49/// Adjust x and y to the same scale, and add them.
50static BasicDecimal128 AddFastPath(const BasicDecimalScalar128& x,

Callers 3

AddNoOverflowFunction · 0.85
AddLargePositiveFunction · 0.85
AddLargeNegativeFunction · 0.85

Calls 1

ReduceScaleByMethod · 0.80

Tested by

no test coverage detected