Skip to content

Commit 944c703

Browse files
committed
Fix type error in quantize_row_q4_1 for Arm NEON
1 parent 72905b6 commit 944c703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ static void quantize_row_q4_0(const float * restrict x, void * restrict vy, int
645645
const float32x4_t v = vmulq_n_f32(srcv[l], id);
646646
const float32x4_t vf = vaddq_f32(v, vdupq_n_f32(8.5f));
647647
const int32x4_t vi = vcvtq_s32_f32(vf);
648-
const int32x4 vc = vminq_u32(vi, vdupq_n_u32(15));
648+
const int32x4_t vc = vminq_s32(vi, vdupq_n_s32(15));
649649

650650
y[i].qs[2*l + 0] = vgetq_lane_s32(vc, 0) | (vgetq_lane_s32(vc, 1) << 4);
651651
y[i].qs[2*l + 1] = vgetq_lane_s32(vc, 2) | (vgetq_lane_s32(vc, 3) << 4);

0 commit comments

Comments
 (0)