ggml : use `uint8x16_t` return type for `ggml_vqtbl1q_u8` (llama/5894)

* use uint8x16_t

* Update ggml-quants.c
pull/1943/head
bobqianic 2024-03-06 07:35:07 +00:00 committed by Georgi Gerganov
parent 7ff1894c34
commit 2f6f1d4465
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735
1 changed files with 2 additions and 2 deletions

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