Skip to content

Commit 77efdf5

Browse files
committed
ggml : fix NEON signs (close #620, #622)
1 parent ed3c680 commit 77efdf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,8 @@ static void dequantize_row_q4_1(const void * restrict vx, float * restrict y, in
10381038
const uint8x16_t vq = vcombine_u8(vx_0, vx_1);
10391039

10401040
// convert to 2x uint16x8_t
1041-
const uint16x8_t vi_0 = vmovl_s8(vget_low_u8 (vq));
1042-
const uint16x8_t vi_1 = vmovl_s8(vget_high_u8(vq));
1041+
const uint16x8_t vi_0 = vmovl_u8(vget_low_u8 (vq));
1042+
const uint16x8_t vi_1 = vmovl_u8(vget_high_u8(vq));
10431043

10441044
// convert to 4x float32x4_t
10451045
const float32x4_t vf_0 = vcvtq_f32_u32(vmovl_u16(vget_low_u16 (vi_0)));

0 commit comments

Comments
 (0)