Spaces:
Sleeping
Sleeping
bobqianic
commited on
ggml : use `uint8x16_t` return type for `ggml_vqtbl1q_u8` (llama/5894)
Browse files- ggml-quants.c +2 -2
ggml-quants.c
CHANGED
|
@@ -464,8 +464,8 @@ inline static int8x16_t ggml_vqtbl1q_s8(int8x16_t a, uint8x16_t b) {
|
|
| 464 |
}
|
| 465 |
|
| 466 |
// NOTE: not tested
|
| 467 |
-
inline static
|
| 468 |
-
|
| 469 |
|
| 470 |
res[ 0] = a[b[ 0]];
|
| 471 |
res[ 1] = a[b[ 1]];
|
|
|
|
| 464 |
}
|
| 465 |
|
| 466 |
// NOTE: not tested
|
| 467 |
+
inline static uint8x16_t ggml_vqtbl1q_u8(uint8x16_t a, uint8x16_t b) {
|
| 468 |
+
uint8x16_t res;
|
| 469 |
|
| 470 |
res[ 0] = a[b[ 0]];
|
| 471 |
res[ 1] = a[b[ 1]];
|