| 11 | // reference from duckDB arithmetic.cpp |
| 12 | template<class SRC_TYPE> |
| 13 | static inline bool AbsInPlaceWithOverflowCheck(SRC_TYPE input, SRC_TYPE& result) { |
| 14 | if (input == NumericLimits<SRC_TYPE>::minimum()) { |
| 15 | return false; |
| 16 | } |
| 17 | result = std::abs(input); |
| 18 | return true; |
| 19 | } |
| 20 | |
| 21 | struct AbsInPlace { |
| 22 | template<class T> |