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

Function castDECIMAL_float64

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

Source from the content-addressed store, hash-verified

216}
217
218FORCE_INLINE
219void castDECIMAL_float64(double in, int32_t x_precision, int32_t x_scale,
220 int64_t* out_high, uint64_t* out_low) {
221 bool overflow = false;
222 auto out = gandiva::decimalops::FromDouble(in, x_precision, x_scale, &overflow);
223 *out_high = out.high_bits();
224 *out_low = out.low_bits();
225}
226
227FORCE_INLINE
228void castDECIMAL_float32(float in, int32_t x_precision, int32_t x_scale,

Callers 1

castDECIMAL_float32Function · 0.85

Calls 1

FromDoubleFunction · 0.85

Tested by

no test coverage detected