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

Method Call

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

Source from the content-addressed store, hash-verified

71struct AddChecked {
72 template <typename T, typename Arg0, typename Arg1>
73 static enable_if_integer_value<T> Call(KernelContext*, Arg0 left, Arg1 right,
74 Status* st) {
75 static_assert(std::is_same<T, Arg0>::value && std::is_same<T, Arg1>::value, "");
76 T result = 0;
77 if (ARROW_PREDICT_FALSE(AddWithOverflow(left, right, &result))) {
78 *st = Status::Invalid("overflow");
79 }
80 return result;
81 }
82
83 template <typename T, typename Arg0, typename Arg1>
84 static enable_if_floating_value<T> Call(KernelContext*, Arg0 left, Arg1 right,

Callers

nothing calls this directly

Calls 2

AddWithOverflowFunction · 0.85
InvalidFunction · 0.50

Tested by

no test coverage detected