big: Add Extended Euclidean algorithm.

This commit is contained in:
Jeroen van Rijn
2021-09-05 14:03:02 +02:00
parent b45842c33f
commit f33d0725db
2 changed files with 85 additions and 2 deletions
+2 -2
View File
@@ -86,13 +86,13 @@ print :: proc(name: string, a: ^Int, base := i8(10), print_name := true, newline
}
}
printf :: fmt.printf;
// printf :: fmt.printf;
demo :: proc() {
a, b, c, d, e, f, res := &Int{}, &Int{}, &Int{}, &Int{}, &Int{}, &Int{}, &Int{};
defer destroy(a, b, c, d, e, f, res);
bits := 111;
bits := 64;
trials := -1;
flags := Primality_Flags{};