ggml : use uint8x16_t return type for ggml_vqtbl1q_u8 (#5894)

* use uint8x16_t

* Update ggml-quants.c
This commit is contained in:
bobqianic 2024-03-06 07:35:07 +00:00 committed by Jianyu Zhang
parent 4a1d95062d
commit f11260a020

View file

@ -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]];