From d383fe57a71af4aaa0c3b6a588e149790f5deaf7 Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 24 Nov 2022 01:26:35 +0200 Subject: [PATCH] clean up whitespace --- src/builtins/arithd.c | 12 ++++++------ src/builtins/arithm.c | 2 +- src/builtins/fold.c | 2 +- src/builtins/slash.c | 2 +- src/builtins/sysfn.c | 4 ++-- src/opt/mm_malloc.h | 2 +- src/utils/mut.c | 4 ++-- src/vm.c | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/builtins/arithd.c b/src/builtins/arithd.c index 8f0b6ad1..fcd23e93 100644 --- a/src/builtins/arithd.c +++ b/src/builtins/arithd.c @@ -139,7 +139,7 @@ typedef void (*AndBytesFn)(u8*, u8*, u64, u64); ) #undef GC2f - + #if SINGELI #define AA_DISPATCH(NAME) FORCE_INLINE B NAME##_AA(B t, B w, B x) { return dyArith_AA(&NAME##DyTableAA, w, x); } AA_DISPATCH(add) AA_DISPATCH(or) @@ -410,11 +410,11 @@ static u64 gcd_u64(u64 a, u64 b) { b >>= bz; while (a > 0) { - a >>= az; - u64 d = b - a; - az = CTZ(d); - b = b>= az; + u64 d = b - a; + az = CTZ(d); + b = bf; if (rtid==n_eq) { bool r=wi^fold_ne(xp, ia) ^ (1&ia); decG(x); return m_i32(r); } goto base; } - if (rtid==n_add) { // + + if (rtid==n_add) { // + u8 sel = xe - el_i8; f64 r = sum_fns[sel](tyany_ptr(x), ia, wf); decG(x); return m_f64(r); diff --git a/src/builtins/slash.c b/src/builtins/slash.c index 8a9fe4a0..0f5a1bc0 100644 --- a/src/builtins/slash.c +++ b/src/builtins/slash.c @@ -949,7 +949,7 @@ B slash_im(B t, B x) { usz ria = (usz)max + 1; \ i##N* rp; r = m_i##N##arrv(&rp, ria); for (usz i=0; i