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

Method Reduce

cpp/src/arrow/compute/kernels/hash_aggregate_numeric.cc:283–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281
282 template <typename T = Type>
283 static enable_if_number<T, CType> Reduce(const DataType&, const CType u,
284 const InputCType v) {
285 return static_cast<CType>(to_unsigned(u) + to_unsigned(static_cast<CType>(v)));
286 }
287
288 static CType Reduce(const DataType&, const CType u, const CType v) {
289 return static_cast<CType>(to_unsigned(u) + to_unsigned(v));

Callers

nothing calls this directly

Calls 1

to_unsignedFunction · 0.85

Tested by

no test coverage detected