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

Function Abs

cpp/src/arrow/util/formatting.h:195–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194template <typename Int, typename UInt = typename std::make_unsigned<Int>::type>
195constexpr UInt Abs(Int value) {
196 return value < 0 ? ~static_cast<UInt>(value) + 1 : static_cast<UInt>(value);
197}
198
199template <typename Int>
200constexpr size_t Digits10(Int value) {

Callers 15

FitsInPrecisionMethod · 0.70
basic_decimal.ccFile · 0.70
FillInArrayFunction · 0.70
operator()Method · 0.70
operator()Method · 0.70
operator()Method · 0.70
operator()Method · 0.70
MoveSingleCellImplMethod · 0.50
MultiplyFunction · 0.50
DivideFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected