| 2158 | |
| 2159 | template <typename T> |
| 2160 | void copyWords( |
| 2161 | T* destination, |
| 2162 | const int32_t* indices, |
| 2163 | int32_t numIndices, |
| 2164 | const T* values, |
| 2165 | bool isLongDecimal = false) { |
| 2166 | if (std::is_same_v<T, int128_t> && isLongDecimal) { |
| 2167 | for (auto i = 0; i < numIndices; ++i) { |
| 2168 | reinterpret_cast<int128_t*>(destination)[i] = toJavaDecimalValue( |
| 2169 | reinterpret_cast<const int128_t*>(values)[indices[i]]); |
| 2170 | } |
| 2171 | return; |
| 2172 | } |
| 2173 | for (auto i = 0; i < numIndices; ++i) { |
| 2174 | destination[i] = values[indices[i]]; |
| 2175 | } |
| 2176 | } |
| 2177 | |
| 2178 | template <typename T> |
| 2179 | void copyWordsWithRows( |
no test coverage detected