aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtyom Lebedev <vagran.ast@gmail.com>2023-06-10 22:51:36 +0300
committerGitHub <noreply@github.com>2023-06-10 22:51:36 +0300
commit3f1223155a462477ac933474ebc4eab0ce3ca264 (patch)
tree511188e72c97abb40c1e61ba21a0b46750615f5a
parent303f5809f1b4ec49823dbe70cacd2124ec1d0df0 (diff)
k-quants : GCC12 compilation fix (#1792)
-rw-r--r--k_quants.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/k_quants.c b/k_quants.c
index 4d52449..a48c821 100644
--- a/k_quants.c
+++ b/k_quants.c
@@ -1519,7 +1519,7 @@ void ggml_vec_dot_q4_K_q8_K(const int n, float * restrict s, const void * restri
const uint8x16_t m4b = vdupq_n_u8(0xf);
#ifdef __ARM_FEATURE_DOTPROD
- const uint32x4_t mzero = vdupq_n_s32(0);
+ const int32x4_t mzero = vdupq_n_s32(0);
#endif
int8x16x2_t q4bytes;
@@ -1745,7 +1745,7 @@ void ggml_vec_dot_q5_K_q8_K(const int n, float * restrict s, const void * restri
#ifdef __ARM_NEON
const uint8x16_t m4b = vdupq_n_u8(0xf);
- const uint32x4_t mzero = vdupq_n_u32(0);
+ const int32x4_t mzero = vdupq_n_s32(0);
const uint8x16_t mone = vdupq_n_u8(1);
const uint8x16_t mtwo = vdupq_n_u8(2);
@@ -2242,5 +2242,3 @@ void ggml_vec_dot_q6_K_q8_K(const int n, float * restrict s, const void * restri
*s = sumf;
#endif
}
-
-