MCPcopy Create free account
hub / github.com/bytedance/bolt / toJavaDecimalValue

Function toJavaDecimalValue

bolt/serializers/PrestoSerializer.cpp:1667–1675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1665}
1666
1667FOLLY_ALWAYS_INLINE int128_t toJavaDecimalValue(int128_t value) {
1668 // Presto Java UnscaledDecimal128 representation uses signed magnitude
1669 // representation. Only negative values differ in this representation.
1670 if (value < 0) {
1671 value *= -1;
1672 value |= DecimalUtil::kInt128Mask;
1673 }
1674 return value;
1675}
1676
1677template <>
1678void VectorStream::append(folly::Range<const int128_t*> values) {

Callers 3

appendMethod · 0.85
copyWordsFunction · 0.85
copyWordsWithRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected