MCPcopy Create free account
hub / github.com/apache/arrow / Call

Method Call

cpp/src/arrow/compute/kernels/base_arithmetic_internal.h:578–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576struct 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,

Callers

nothing calls this directly

Calls 3

NegateWithOverflowFunction · 0.85
NegateMethod · 0.80
InvalidFunction · 0.50

Tested by

no test coverage detected