Skip to content

Commit ec50944

Browse files
committed
ggml-quants : fix build failure on Windows
1 parent bfd2f21 commit ec50944

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml/src/ggml-quants.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11385,7 +11385,7 @@ void ggml_vec_dot_q1_3_q8_0(int n, float * restrict s, size_t bs, const void * r
1138511385
// const __m128i x13b = _mm_insert_epi8(x12a, x->qs[0], 12);
1138611386
// WARNING: reading 3 bytes further than necessary.
1138711387
// It's measurably faster than a masked load on an Intel Core m3-8100Y
11388-
const __m128i x13b = _mm_loadu_si128((const __m128i_u *) x);
11388+
const __m128i x13b = _mm_loadu_si128((const __m128i *) x);
1138911389
const __m256i x13 = MM256_SET_M128I(x13b, x13b);
1139011390

1139111391
{
@@ -11435,8 +11435,8 @@ void ggml_vec_dot_q1_3_q8_0(int n, float * restrict s, size_t bs, const void * r
1143511435
x0 = _mm256_sub_epi8(x0, _mm256_set1_epi8(1));
1143611436
x1 = _mm256_sub_epi8(x1, _mm256_set1_epi8(1));
1143711437

11438-
const __m256i y0 = _mm256_loadu_si256((const __m256i_u *) (y[0].qs));
11439-
const __m256i y1 = _mm256_loadu_si256((const __m256i_u *) (y[1].qs));
11438+
const __m256i y0 = _mm256_loadu_si256((const __m256i *) (y[0].qs));
11439+
const __m256i y1 = _mm256_loadu_si256((const __m256i *) (y[1].qs));
1144011440

1144111441
const __m256 d0 = _mm256_set1_ps(GGML_FP16_TO_FP32(y[0].d));
1144211442
const __m256 d1 = _mm256_set1_ps(GGML_FP16_TO_FP32(y[1].d));

0 commit comments

Comments
 (0)