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

Method Sign

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

Return 1 if positive or zero, -1 if strictly negative.

Source from the content-addressed store, hash-verified

129
130 /// Return 1 if positive or zero, -1 if strictly negative.
131 int64_t Sign() const {
132 return 1 | (static_cast<int64_t>(array_[kHighWordIndex]) >> 63);
133 }
134
135 bool IsNegative() const { return static_cast<int64_t>(array_[kHighWordIndex]) < 0; }
136

Callers 15

CheckArrayMethod · 0.80
basic_decimal.ccFile · 0.80
TYPED_TESTFunction · 0.80
CallMethod · 0.80
RoundMethod · 0.80
RoundMethod · 0.80
RoundMethod · 0.80
RoundMethod · 0.80
RoundMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80

Calls

no outgoing calls

Tested by 2

CheckArrayMethod · 0.64
TYPED_TESTFunction · 0.64