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/common.odin | |
| parent | d4d863c4db6fcc893ff3a04ff3ef4ca1ef757f4c (diff) | |
big: Add `shl`, `shr` and `shrmod`.
Diffstat (limited to 'core/math/big/common.odin')
| -rw-r--r-- | core/math/big/common.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math/big/common.odin b/core/math/big/common.odin index c8e219927..fcfdb3973 100644 --- a/core/math/big/common.odin +++ b/core/math/big/common.odin @@ -94,11 +94,11 @@ when size_of(rawptr) == 8 { /* We can use u128 as an intermediary. */ - DIGIT :: distinct(u64); - _WORD :: distinct(u128); + DIGIT :: distinct u64; + _WORD :: distinct u128; } else { - DIGIT :: distinct(u32); - _WORD :: distinct(u64); + DIGIT :: distinct u32; + _WORD :: distinct u64; } #assert(size_of(_WORD) == 2 * size_of(DIGIT)); |