Skip to content

Commit ac17f8a

Browse files
committed
ggml : use ggml_vqtbl1q_u8 for 32-bit compat (whisper/0)
1 parent c4ae9a8 commit ac17f8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ggml/src/ggml-cpu/arch/arm/quants.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ void ggml_vec_dot_q2_0_q8_0(int n, float * GGML_RESTRICT s, size_t bs, const voi
263263
const uint8x16_t raw16 = vcombine_u8(raw, raw);
264264

265265
// First 16 elements: replicate bytes 0-3, shift, mask, subtract 1
266-
uint8x16_t bytes0 = vqtbl1q_u8(raw16, idx_lo);
266+
uint8x16_t bytes0 = ggml_vqtbl1q_u8(raw16, idx_lo);
267267
int8x16_t qv0 = vsubq_s8(
268268
vreinterpretq_s8_u8(vandq_u8(vshlq_u8(bytes0, shifts), mask2)),
269269
one);
270270

271271
// Second 16 elements: replicate bytes 4-7, shift, mask, subtract 1
272-
uint8x16_t bytes1 = vqtbl1q_u8(raw16, idx_hi);
272+
uint8x16_t bytes1 = ggml_vqtbl1q_u8(raw16, idx_hi);
273273
int8x16_t qv1 = vsubq_s8(
274274
vreinterpretq_s8_u8(vandq_u8(vshlq_u8(bytes1, shifts), mask2)),
275275
one);

0 commit comments

Comments
 (0)