diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-16 11:58:50 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-16 11:58:50 +0100 |
| commit | e3fef2dadef2b10342222f0314583f6f53e39ff4 (patch) | |
| tree | 8c9d02259b75be22736d65d4a595ee933a26a259 /core/math/big/private.odin | |
| parent | 4c306a6f9958a01302cf09fdff8f7d4ff143c605 (diff) | |
Improve parsing for `or_return`; allow `#force_inline foo() or_return;`
Diffstat (limited to 'core/math/big/private.odin')
| -rw-r--r-- | core/math/big/private.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math/big/private.odin b/core/math/big/private.odin index 14c2464d0..a99d6119f 100644 --- a/core/math/big/private.odin +++ b/core/math/big/private.odin @@ -1268,17 +1268,17 @@ _private_int_log :: proc(a: ^Int, base: DIGIT, allocator := context.allocator) - }
low = high;
- (#force_inline internal_copy(bracket_low, bracket_high)) or_return;
+ #force_inline internal_copy(bracket_low, bracket_high) or_return;
high <<= 1;
- (#force_inline internal_sqr(bracket_high, bracket_high)) or_return;
+ #force_inline internal_sqr(bracket_high, bracket_high) or_return;
}
for (high - low) > 1 {
mid := (high + low) >> 1;
- (#force_inline internal_pow(t, bi_base, mid - low)) or_return;
+ #force_inline internal_pow(t, bi_base, mid - low) or_return;
- (#force_inline internal_mul(bracket_mid, bracket_low, t)) or_return;
+ #force_inline internal_mul(bracket_mid, bracket_low, t) or_return;
mc := #force_inline internal_cmp(a, bracket_mid);
switch mc {
|