diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-07-22 23:00:36 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-08-11 20:59:51 +0200 |
| commit | f34ba44bf88e830bdecebfd3948a7c7ffb4e2215 (patch) | |
| tree | 2f6d42d475d7e494bdb31d126f3f344927a67312 /core/math/big/example.odin | |
| parent | d4d863c4db6fcc893ff3a04ff3ef4ca1ef757f4c (diff) | |
big: Add `shl`, `shr` and `shrmod`.
Diffstat (limited to 'core/math/big/example.odin')
| -rw-r--r-- | core/math/big/example.odin | 9 |
1 files changed, 2 insertions, 7 deletions
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); |