| 596 | */ |
| 597 | |
| 598 | short Decimal64::decCompare(Decimal64 op2) const |
| 599 | { |
| 600 | if (decDoubleIsNaN(&dec) || decDoubleIsNaN(&op2.dec)) |
| 601 | return 3; |
| 602 | |
| 603 | switch (totalOrder(op2)) |
| 604 | { |
| 605 | case -1: |
| 606 | return 1; |
| 607 | case 0: |
| 608 | return 0; |
| 609 | case 1: |
| 610 | return 2; |
| 611 | default: |
| 612 | fb_assert(false); |
| 613 | } |
| 614 | |
| 615 | // warning silencer |
| 616 | return 3; |
| 617 | } |
| 618 | |
| 619 | Decimal128 Decimal128::set(Decimal64 d64) |
| 620 | { |