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

Function Decimal128FromInt128

cpp/src/arrow/util/decimal_test.cc:91–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91Decimal128 Decimal128FromInt128(int128_t value) {
92 return Decimal128(static_cast<int64_t>(value >> 64),
93 static_cast<uint64_t>(value & 0xFFFFFFFFFFFFFFFFULL));
94}
95
96template <typename DecimalType>
97struct DecimalTraits {};

Callers 2

TYPED_TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

Decimal128Function · 0.70

Tested by

no test coverage detected