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

Function Sign

cpp/src/arrow/util/basic_decimal.h:227–227  ·  view source on GitHub ↗

\brief Return 1 if positive or 0, -1 if strictly negative

Source from the content-addressed store, hash-verified

225
226 /// \brief Return 1 if positive or 0, -1 if strictly negative
227 int64_t Sign() const { return 1 | (value_ >> (kBitWidth - 1)); }
228
229 bool IsNegative() const { return value_ < 0; }
230

Callers 2

ReduceScaleByMethod · 0.70
basic_decimal.ccFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected