| 576 | struct NegateChecked { |
| 577 | template <typename T, typename Arg> |
| 578 | static enable_if_signed_integer_value<Arg, T> Call(KernelContext*, Arg arg, |
| 579 | Status* st) { |
| 580 | static_assert(std::is_same<T, Arg>::value, ""); |
| 581 | T result = 0; |
| 582 | if (ARROW_PREDICT_FALSE(NegateWithOverflow(arg, &result))) { |
| 583 | *st = Status::Invalid("overflow"); |
| 584 | } |
| 585 | return result; |
| 586 | } |
| 587 | |
| 588 | template <typename T, typename Arg> |
| 589 | static enable_if_unsigned_integer_value<Arg, T> Call(KernelContext* ctx, Arg arg, |
nothing calls this directly
no test coverage detected