Skip to content

Commit

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

* use uint8x16_t

* Update ggml-quants.c
  • Loading branch information
bobqianic authored and hazelnutcloud committed Mar 10, 2024
1 parent 1f745cd commit acb4657
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 acb4657

Please sign in to comment.