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 GitHub
parent 1e35d619a6
commit e25fb4b18f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -464,8 +464,8 @@ inline static int8x16_t ggml_vqtbl1q_s8(int8x16_t a, uint8x16_t b) {
} }
// NOTE: not tested // NOTE: not tested
inline static int8x16_t ggml_vqtbl1q_u8(uint8x16_t a, uint8x16_t b) { inline static uint8x16_t ggml_vqtbl1q_u8(uint8x16_t a, uint8x16_t b) {
int8x16_t res; uint8x16_t res;
res[ 0] = a[b[ 0]]; res[ 0] = a[b[ 0]];
res[ 1] = a[b[ 1]]; res[ 1] = a[b[ 1]];