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

Method Divide

cpp/src/arrow/util/basic_decimal.cc:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59DecimalStatus BasicDecimal32::Divide(const BasicDecimal32& divisor,
60 BasicDecimal32* result,
61 BasicDecimal32* remainder) const {
62 if (divisor.value_ == 0) {
63 return DecimalStatus::kDivideByZero;
64 }
65
66 *result = value_ / divisor.value_;
67 if (remainder) {
68 *remainder = value_ % divisor.value_;
69 }
70 return DecimalStatus::kSuccess;
71}
72
73BasicDecimal32& BasicDecimal32::operator<<=(uint32_t bits) {
74 if (bits != 0) {

Callers 10

garrow_decimal_divideFunction · 0.80
operator%Function · 0.80
operator/Function · 0.80
DoMeanMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80
FinalizeImplMethod · 0.80
DivideFunction · 0.80

Calls 1

DecimalDivideFunction · 0.85

Tested by

no test coverage detected