From f34ba44bf88e830bdecebfd3948a7c7ffb4e2215 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Thu, 22 Jul 2021 23:00:36 +0200 Subject: big: Add `shl`, `shr` and `shrmod`. --- core/math/big/example.odin | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'core/math/big/example.odin') diff --git a/core/math/big/example.odin b/core/math/big/example.odin index 1b8503233..b004d115d 100644 --- a/core/math/big/example.odin +++ b/core/math/big/example.odin @@ -57,16 +57,11 @@ demo :: proc() { a, b, c := &Int{}, &Int{}, &Int{}; defer destroy(a, b, c); - err = set(a, -512); + err = set(a, 1); err = set(b, 1); err = set(c, -4); - - err = mod_power_of_two(a, a, 10); - fmt.printf("%v (%v)\n", int_get_float(a)); - - - print("a", a, 10); + print("a", a, 16); print("b", b, 10); print("c", c, 10); -- cgit v1.2.3