| 57 | } |
| 58 | |
| 59 | DecimalStatus 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 | |
| 73 | BasicDecimal32& BasicDecimal32::operator<<=(uint32_t bits) { |
| 74 | if (bits != 0) { |
no test coverage detected