From 7eb2b97e29cfe90c1e2832612faffcb3f31234a8 Mon Sep 17 00:00:00 2001 From: dzaima Date: Wed, 14 Aug 2024 02:52:29 +0300 Subject: [PATCH] use COPY_TO_FROM in cpyU16Bits & cpyU8Bits --- src/ffi.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/ffi.c b/src/ffi.c index 482ca2b2..83736057 100644 --- a/src/ffi.c +++ b/src/ffi.c @@ -585,25 +585,24 @@ static NOINLINE B toW(u8 reT, u8 reW, B x) { FORCE_INLINE u64 i64abs(i64 x) { return x<0?-x:x; } -#define CPY_UNSIGNED(REL, UEL, DIRECT, WIDEN, WEL) \ +#define CPY_UNSIGNED(REL, DIRECT, WIDEN, WEL, NARROW) \ if (TI(x,elType)<=el_##REL) return taga(DIRECT(x)); \ usz ia = IA(x); \ B t = WIDEN(x); WEL* tp = WEL##any_ptr(t); \ REL* rp; B r = m_##REL##arrv(&rp, ia); \ - vfor (usz i=0; i