Skip to content

Commit 3f12231

Browse files
authored
k-quants : GCC12 compilation fix (#1792)
1 parent 303f580 commit 3f12231

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

k_quants.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ void ggml_vec_dot_q4_K_q8_K(const int n, float * restrict s, const void * restri
15191519

15201520
const uint8x16_t m4b = vdupq_n_u8(0xf);
15211521
#ifdef __ARM_FEATURE_DOTPROD
1522-
const uint32x4_t mzero = vdupq_n_s32(0);
1522+
const int32x4_t mzero = vdupq_n_s32(0);
15231523
#endif
15241524

15251525
int8x16x2_t q4bytes;
@@ -1745,7 +1745,7 @@ void ggml_vec_dot_q5_K_q8_K(const int n, float * restrict s, const void * restri
17451745
#ifdef __ARM_NEON
17461746

17471747
const uint8x16_t m4b = vdupq_n_u8(0xf);
1748-
const uint32x4_t mzero = vdupq_n_u32(0);
1748+
const int32x4_t mzero = vdupq_n_s32(0);
17491749
const uint8x16_t mone = vdupq_n_u8(1);
17501750
const uint8x16_t mtwo = vdupq_n_u8(2);
17511751

@@ -2242,5 +2242,3 @@ void ggml_vec_dot_q6_K_q8_K(const int n, float * restrict s, const void * restri
22422242
*s = sumf;
22432243
#endif
22442244
}
2245-
2246-

0 commit comments

Comments
 (0)