| 1665 | } |
| 1666 | |
| 1667 | FOLLY_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 | |
| 1677 | template <> |
| 1678 | void VectorStream::append(folly::Range<const int128_t*> values) { |
no outgoing calls
no test coverage detected