From: bobqianic Date: Wed, 6 Mar 2024 07:35:07 +0000 (+0000) Subject: ggml : use `uint8x16_t` return type for `ggml_vqtbl1q_u8` (llama/5894) X-Git-Tag: upstream/0.0.1642~879 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=4efe462e8888e6b6c8635ee2e520299028191875;p=pkg%2Fggml%2Fsources%2Fggml ggml : use `uint8x16_t` return type for `ggml_vqtbl1q_u8` (llama/5894) * use uint8x16_t * Update ggml-quants.c --- diff --git a/src/ggml-quants.c b/src/ggml-quants.c index e0c125d4..9dcb76de 100644 --- a/src/ggml-quants.c +++ b/src/ggml-quants.c @@ -464,8 +464,8 @@ inline static int8x16_t ggml_vqtbl1q_s8(int8x16_t a, uint8x16_t b) { } // NOTE: not tested -inline static int8x16_t ggml_vqtbl1q_u8(uint8x16_t a, uint8x16_t b) { - int8x16_t res; +inline static uint8x16_t ggml_vqtbl1q_u8(uint8x16_t a, uint8x16_t b) { + uint8x16_t res; res[ 0] = a[b[ 0]]; res[ 1] = a[b[ 1]];