From be392e38572760dda8d484285e55fcd5e35ddbfa Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Sat, 26 Dec 2020 03:58:48 -0500 Subject: [PATCH] WIP: Got some AVX2 code working --- dnn/vec.h | 4 +-- dnn/vec_avx.h | 92 +++++++++++++++++++++++++++++++++------------------ 2 files changed, 62 insertions(+), 34 deletions(-) diff --git a/dnn/vec.h b/dnn/vec.h index 646ed324..d1de923b 100644 --- a/dnn/vec.h +++ b/dnn/vec.h @@ -200,7 +200,7 @@ static inline void sparse_sgemv_accum16(float *out, const float *w, int rows, co static inline void sparse_sgemv_accum8x4(float *out, const qweight *w, int rows, int cols, const int *idx, const float *_x) { int i, j; - unsigned x[MAX_INPUTS]; + unsigned char x[MAX_INPUTS]; for (i=0;i