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

Function round_decimal128

cpp/src/gandiva/precompiled/decimal_wrapper.cc:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133FORCE_INLINE
134void round_decimal128(int64_t x_high, uint64_t x_low, int32_t x_precision,
135 int32_t x_scale, int32_t out_precision, int32_t out_scale,
136 int64_t* out_high, uint64_t* out_low) {
137 gandiva::BasicDecimalScalar128 x({x_high, x_low}, x_precision, x_scale);
138
139 bool overflow = false;
140 auto out = gandiva::decimalops::Round(x, out_precision, 0, 0, &overflow);
141 *out_high = out.high_bits();
142 *out_low = out.low_bits();
143}
144
145FORCE_INLINE
146void round_decimal128_int32(int64_t x_high, uint64_t x_low, int32_t x_precision,

Callers

nothing calls this directly

Calls 1

RoundFunction · 0.70

Tested by

no test coverage detected