big: Add submod, mulmod, sqrmod.

This commit is contained in:
Jeroen van Rijn
2021-08-11 20:59:51 +02:00
parent 5f7aeb3045
commit 9646d1f2b8
2 changed files with 37 additions and 5 deletions
+2 -2
View File
@@ -69,10 +69,10 @@ demo :: proc() {
err = set (numerator, 3);
err = set (denominator, 2);
err = set (quotient, 3);
err = set (quotient, 5);
err = zero(remainder);
err = addmod(remainder, numerator, denominator, quotient);
err = mulmod(remainder, numerator, denominator, quotient);
if err != .None {
fmt.printf("Error: %v\n", err);
} else {