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

Function AddChecked

cpp/src/arrow/compute/kernels/scalar_arithmetic_benchmark.cc:39–44  ·  view source on GitHub ↗

Add explicit overflow-checked shortcuts, for easy benchmark parameterizing.

Source from the content-addressed store, hash-verified

37
38// Add explicit overflow-checked shortcuts, for easy benchmark parameterizing.
39static Result<Datum> AddChecked(const Datum& left, const Datum& right,
40 ArithmeticOptions options = ArithmeticOptions(),
41 ExecContext* ctx = NULLPTR) {
42 options.check_overflow = true;
43 return Add(left, right, std::move(options), ctx);
44}
45
46static Result<Datum> SubtractChecked(const Datum& left, const Datum& right,
47 ArithmeticOptions options = ArithmeticOptions(),

Callers

nothing calls this directly

Calls 1

AddClass · 0.70

Tested by

no test coverage detected