diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-08-18 16:35:27 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-08-19 12:12:59 +0200 |
| commit | 1ad0743a5248c884d33fe2cd713e4db824938497 (patch) | |
| tree | ebac4dcc8f7763b4c1caec1a8b9e69d8afbec3a6 /core/math/big/private.odin | |
| parent | 54af47a13881c938ae6bfeab89f69123c1dfc62a (diff) | |
big: Nicely align test suite results.
Diffstat (limited to 'core/math/big/private.odin')
| -rw-r--r-- | core/math/big/private.odin | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/core/math/big/private.odin b/core/math/big/private.odin index 24fb2110f..e938e57f1 100644 --- a/core/math/big/private.odin +++ b/core/math/big/private.odin @@ -1540,6 +1540,8 @@ _private_int_log :: proc(a: ^Int, base: DIGIT, allocator := context.allocator) - }
+
+
/*
hac 14.61, pp608
*/
@@ -1708,9 +1710,7 @@ _private_inverse_modulo_odd :: proc(dest, a, b: ^Int, allocator := context.alloc /*
2. [modified] `b` must be odd.
*/
- if internal_is_even(b) {
- return .Invalid_Argument;
- }
+ if internal_is_even(b) { return .Invalid_Argument; }
/*
Init all our temps.
@@ -1730,9 +1730,7 @@ _private_inverse_modulo_odd :: proc(dest, a, b: ^Int, allocator := context.alloc /*
If one of `x`, `y` is zero return an error!
*/
- if internal_is_zero(x) || internal_is_zero(y) {
- return .Invalid_Argument;
- }
+ if internal_is_zero(x) || internal_is_zero(y) { return .Invalid_Argument; }
/*
3. `u` = `x`, `v` = `y`, `A` = 1, `B` = 0, `C` = 0, `D` = 1
@@ -1812,9 +1810,7 @@ _private_inverse_modulo_odd :: proc(dest, a, b: ^Int, allocator := context.alloc /*
If not zero goto step 4.
*/
- if internal_is_zero(u) {
- break;
- }
+ if internal_is_zero(u) { break; }
}
/*
|