big: Nicely align test suite results.

This commit is contained in:
Jeroen van Rijn
2021-08-19 12:12:59 +02:00
parent 54af47a138
commit 1ad0743a52
2 changed files with 15 additions and 12 deletions
+5 -9
View File
@@ -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; }
}
/*