| 473 | } |
| 474 | |
| 475 | int Decimal64::compare(DecimalStatus decSt, Decimal64 tgt) const |
| 476 | { |
| 477 | DecimalStatus cmpStatus(decSt); |
| 478 | cmpStatus.decExtFlag &= ~DEC_IEEE_754_Invalid_operation; |
| 479 | DecimalContext context(this, cmpStatus); |
| 480 | decDouble r; |
| 481 | decDoubleCompare(&r, &dec, &tgt.dec, &context); |
| 482 | return decDoubleToInt32(&r, &context, DEC_ROUND_HALF_UP); |
| 483 | } |
| 484 | |
| 485 | bool Decimal64::isInf() const |
| 486 | { |
no outgoing calls
no test coverage detected