diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-21 21:20:26 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-21 21:20:26 +0100 |
| commit | 53075e2570d7b2590124beabeda93bd56dd4b778 (patch) | |
| tree | 097e4db508e7ac1b97e95b41142f552b1e303f44 /src/integer128.cpp | |
| parent | 264ca00db72f56e2af8242a90e35a49b6ae13f86 (diff) | |
Update old demos
Diffstat (limited to 'src/integer128.cpp')
| -rw-r--r-- | src/integer128.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/integer128.cpp b/src/integer128.cpp index 58a21d6d7..ddcdaca76 100644 --- a/src/integer128.cpp +++ b/src/integer128.cpp @@ -681,8 +681,8 @@ void i128_divide(i128 a, i128 b, i128 *quo, i128 *rem) { i128 ni = *cast(i128 *)&n; i128 ri = *cast(i128 *)&r; - if (quo) *quo = i128_sub(i128_xor(ri, s), s); - if (rem) *rem = i128_sub(i128_xor(ni, s), s); + if (quo) *quo = i128_sub(i128_xor(ni, s), s); + if (rem) *rem = i128_sub(i128_xor(ri, s), s); #else if (i128_eq(b, I128_ZERO)) { if (quo) *quo = i128_from_u64(a.lo/b.lo); |