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

Function Decimal256FromInt128

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

Source from the content-addressed store, hash-verified

2091}
2092
2093Decimal256 Decimal256FromInt128(int128_t value) {
2094 return Decimal256(Decimal128(static_cast<int64_t>(value >> 64),
2095 static_cast<uint64_t>(value & 0xFFFFFFFFFFFFFFFFULL)));
2096}
2097
2098TEST(Decimal256Test, Multiply) {
2099 using boost::multiprecision::int256_t;

Callers 1

TESTFunction · 0.85

Calls 2

Decimal256Function · 0.70
Decimal128Function · 0.70

Tested by

no test coverage detected