aboutsummaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-09-30 20:26:04 +0100
committergingerBill <bill@gingerbill.org>2023-09-30 20:26:04 +0100
commit5023313c031d2d2e587dc1e30b4982e7784061c2 (patch)
tree2ce225d27db249cdb7a6061a388ef09072a3a6ee /core/math
parent3e0fd6368225ddfa6820be72d194b7cd1daf52dc (diff)
Minor cleanups to the core library
Diffstat (limited to 'core/math')
-rw-r--r--core/math/big/prime.odin2
-rw-r--r--core/math/big/private.odin2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/math/big/prime.odin b/core/math/big/prime.odin
index 7e9607cb3..8403d5315 100644
--- a/core/math/big/prime.odin
+++ b/core/math/big/prime.odin
@@ -1163,7 +1163,7 @@ internal_int_prime_next_prime :: proc(a: ^Int, trials: int, bbs_style: bool, all
/*
If we didn't pass the sieve and step == MP_MAX then skip test */
- if (y && (step >= ((1 << _DIGIT_BITS) - kstep))) { continue }
+ if y && (step >= ((1 << _DIGIT_BITS) - kstep)) { continue }
if internal_int_is_prime(a, trials) or_return { break }
}
diff --git a/core/math/big/private.odin b/core/math/big/private.odin
index 419f2103f..d41e66343 100644
--- a/core/math/big/private.odin
+++ b/core/math/big/private.odin
@@ -1089,7 +1089,7 @@ _private_int_div_school :: proc(quotient, remainder, numerator, denominator: ^In
Step 3. for i from n down to (t + 1).
*/
#no_bounds_check for i := n; i >= (t + 1); i -= 1 {
- if (i > x.used) { continue }
+ if i > x.used { continue }
/*
step 3.1 if xi == yt then set q{i-t-1} to b-1, otherwise set q{i-t-1} to (xi*b + x{i-1})/yt