| 480 | } |
| 481 | |
| 482 | double Int128::toDouble() const |
| 483 | { |
| 484 | unsigned dwords[4]; |
| 485 | getTable32(dwords); |
| 486 | double rc = int(dwords[3]); |
| 487 | for (int i = 3; i--;) |
| 488 | { |
| 489 | rc *= p2_32; |
| 490 | rc += dwords[i]; |
| 491 | } |
| 492 | |
| 493 | return rc; |
| 494 | } |
| 495 | |
| 496 | Int128 Int128::mul(Int128 op2) const |
| 497 | { |