From d959482d443725897f1f751b26e91b785a609336 Mon Sep 17 00:00:00 2001 From: dzaima Date: Mon, 25 Jul 2022 05:21:06 +0300 Subject: [PATCH] move generic array copy to its own function --- src/utils/mut.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/utils/mut.c b/src/utils/mut.c index 5ea3791b..5dd8a581 100644 --- a/src/utils/mut.c +++ b/src/utils/mut.c @@ -215,13 +215,15 @@ DEF_G(void, copy, B, (void* a, usz ms, B x, usz xs, usz l), ms, x, x #define COPY_FN(X,R) avx2_copy_##X##_##R #define MAKE_CPY(TY, MAKE, GET, WR, XRP, H2T, T, ...) \ static copy_fn copy##T##Fns[10]; \ + NOINLINE void cpy##T##Arr_BF(u8* xp, u8* rp, u64 ia, Arr* xa) { \ + AS2B fn = TIv(xa,GET); \ + for (usz i=0; i