| 36 | |
| 37 | the result is as follows: |
| 38 | {{{ |
| 39 | int -7 / bigint 5 :: /: -1 , q: -1 , r: 3 |
| 40 | ==: 0 , diff: -2 <> r: 3 |
| 41 | q must be: -2 |
| 42 | |
| 43 | int -7 / bigint -5 :: /: 1 , q: 1 , r: 3 |
| 44 | ==: 0 , diff: -2 <> r: 3 |
| 45 | q must be: 2 |
| 46 | |
| 47 | int -7 / bigint 5000000000000000 :: /: 0 , q: 0 , r: 4999999999999993 |
| 48 | ==: 0 , diff: -7 <> r: 4999999999999993 |
| 49 | q must be: -1 |
| 50 | |
| 51 | int -7 / bigint -5000000000000000 :: /: 0 , q: 0 , r: 4999999999999993 |
| 52 | ==: 0 , diff: -7 <> r: 4999999999999993 |
| 53 | q must be: 1 |
| 54 | |
| 55 | bigint -7 / int 5 :: /: -1 , q: -1 , r: 3 |
| 56 | ==: 0 , diff: -2 <> r: 3 |
| 57 | q must be: -2 |
| 58 | |
| 59 | bigint -7 / int -5 :: /: 1 , q: 1 , r: 3 |
| 60 | ==: 0 , diff: -2 <> r: 3 |
| 61 | q must be: 2 |
| 62 | |
| 63 | bigint -7 / bigint 5 :: /: -1 , q: -1 , r: 3 |
| 64 | ==: 0 , diff: -2 <> r: 3 |
| 65 | q must be: -2 |
| 66 | |
| 67 | bigint -7 / bigint -5 :: /: 1 , q: 1 , r: 3 |
| 68 | ==: 0 , diff: -2 <> r: 3 |
| 69 | q must be: 2 |
| 70 | |
| 71 | bigint -7 / bigint 5000000000000000 :: /: 0 , q: 0 , r: 4999999999999993 |
| 72 | ==: 0 , diff: -7 <> r: 4999999999999993 |
| 73 | q must be: -1 |
| 74 | |
| 75 | bigint -7 / bigint -5000000000000000 :: /: 0 , q: 0 , r: 4999999999999993 |
| 76 | ==: 0 , diff: -7 <> r: 4999999999999993 |
| 77 | q must be: 1 |
| 78 | |
| 79 | bigint 7000000000000000 / bigint -5000000000000000 :: /: -2 , q: -2 , r: 2000000000000000 |
| 80 | ==: 0 , diff: -3000000000000000 <> r: 2000000000000000 |
| 81 | q must be: -1 |
| 82 | |
| 83 | bigint -7000000000000000 / bigint -5000000000000000 :: /: 1 , q: 1 , r: 3000000000000000 |
| 84 | ==: 0 , diff: -2000000000000000 <> r: 3000000000000000 |
| 85 | q must be: 2 |
| 86 | |
| 87 | int -268435456 / bigint 5 :: /: -53687091 , q: -53687091 , r: 4 |
| 88 | ==: 0 , diff: -1 <> r: 4 |
| 89 | q must be: -53687092 |
| 90 | |
| 91 | int 268435456 / bigint -5 :: /: -53687092 , q: -53687092 , r: 1 |
| 92 | ==: 0 , diff: -4 <> r: 1 |
| 93 | q must be: -53687091 |
| 94 | |
| 95 | int -268435456 / bigint -5 :: /: 53687091 , q: 53687091 , r: 4 |
| 96 | ==: 0 , diff: -1 <> r: 4 |
| 97 | q must be: 53687092 |
| 98 | |
| 99 | int -268435456 / bigint 5000000000000000 :: /: 0 , q: 0 , r: 4999999731564544 |
| 100 | ==: 0 , diff: -268435456 <> r: 4999999731564544 |
| 101 | q must be: -1 |
| 102 | |
| 103 | int 268435456 / bigint -5000000000000000 :: /: -1 , q: -1 , r: 268435456 |
| 104 | ==: 0 , diff: -4999999731564544 <> r: 268435456 |
| 105 | q must be: 0 |
| 106 | |
| 107 | int -268435456 / bigint -5000000000000000 :: /: 0 , q: 0 , r: 4999999731564544 |
| 108 | ==: 0 , diff: -268435456 <> r: 4999999731564544 |
| 109 | q must be: 1 |
| 110 | |
| 111 | bigint -268435456 / int 5 :: /: -53687091 , q: -53687091 , r: 4 |
| 112 | ==: 0 , diff: -1 <> r: 4 |
| 113 | q must be: -53687092 |
| 114 | |
| 115 | bigint 268435456 / int -5 :: /: -53687092 , q: -53687092 , r: 1 |
| 116 | ==: 0 , diff: -4 <> r: 1 |
| 117 | q must be: -53687091 |
| 118 | |
| 119 | bigint -268435456 / int -5 :: /: 53687091 , q: 53687091 , r: 4 |
| 120 | ==: 0 , diff: -1 <> r: 4 |
| 121 | q must be: 53687092 |
| 122 | |
| 123 | bigint -268435456 / bigint 5 :: /: -53687091 , q: -53687091 , r: 4 |
| 124 | ==: 0 , diff: -1 <> r: 4 |
| 125 | q must be: -53687092 |
| 126 | |
| 127 | bigint 268435456 / bigint -5 :: /: -53687092 , q: -53687092 , r: 1 |
| 128 | ==: 0 , diff: -4 <> r: 1 |
| 129 | q must be: -53687091 |
| 130 | |
| 131 | bigint -268435456 / bigint -5 :: /: 53687091 , q: 53687091 , r: 4 |
| 132 | ==: 0 , diff: -1 <> r: 4 |
| 133 | q must be: 53687092 |
| 134 | |
| 135 | bigint -268435456 / bigint 5000000000000000 :: /: 0 , q: 0 , r: 4999999731564544 |
| 136 | ==: 0 , diff: -268435456 <> r: 4999999731564544 |
| 137 | q must be: -1 |
| 138 | |
| 139 | bigint 268435456 / bigint -5000000000000000 :: /: -1 , q: -1 , r: 268435456 |
| 140 | ==: 0 , diff: -4999999731564544 <> r: 268435456 |
| 141 | q must be: 0 |
| 142 | |
| 143 | bigint -268435456 / bigint -5000000000000000 :: /: 0 , q: 0 , r: 4999999731564544 |
| 144 | ==: 0 , diff: -268435456 <> r: 4999999731564544 |
| 145 | q must be: 1 |
| 146 | }}} |