Skip to content

Commit

Permalink
ggml : use uint8x16_t return type for ggml_vqtbl1q_u8 (#5894)
Browse files Browse the repository at this point in the history
* use uint8x16_t

* Update ggml-quants.c
  • Loading branch information
bobqianic authored Mar 6, 2024
1 parent 1e35d61 commit e25fb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ggml-quants.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down

0 comments on commit e25fb4b

Please sign in to comment.