Damien George | 9a21d2e | 2014-09-06 17:15:34 +0100 | [diff] [blame] | 1 | for lhs in (1000000000000000000000000, 10000000000100000000000000, 10012003400000000000000007, 12349083434598210349871029923874109871234789): |
| 2 | for rhs in range(1, 555): |
| 3 | print(lhs // rhs) |
Damien George | dc3faea | 2016-05-08 21:38:43 +0100 | [diff] [blame^] | 4 | |
| 5 | # these check an edge case on 64-bit machines where two mpz limbs |
| 6 | # are used and the most significant one has the MSB set |
| 7 | x = 0x8000000000000000 |
| 8 | print((x + 1) // x) |
| 9 | x = 0x86c60128feff5330 |
| 10 | print((x + 1) // x) |