Skip to content

Commit 864f7c8

Browse files
committed
Change comment, fix whitespace
1 parent de7b15b commit 864f7c8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ggml.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,15 @@ static void ggml_vec_dot_q4_0(const int n, float * restrict s, const void * rest
19741974
// Main loop
19751975
for (int i = 0; i < nb; i+=UNROLL_COUNT) {
19761976

1977+
<<<<<<< HEAD
19771978
// This loop will be unrolled by the compiler
1979+
=======
1980+
/* Prepare the constants we will need during execution */
1981+
const __m256i lowMask = _mm256_set1_epi8( 0xF );
1982+
const __m256i offset_8 = _mm256_set1_epi16( 8 );
1983+
1984+
// This loop will be unrolled by the compiler
1985+
>>>>>>> 359be15 (Change comment, fix whitespace)
19781986
for (int u=0;u<UNROLL_COUNT;u++) {
19791987
/* Compute combined scale for the block */
19801988
const __m256 scale = _mm256_mul_ps(
@@ -2034,7 +2042,7 @@ static void ggml_vec_dot_q4_0(const int n, float * restrict s, const void * rest
20342042
res = _mm_add_ps( res, _mm256_castps256_ps128( acc ) );
20352043
res = _mm_add_ps( res, _mm_movehl_ps( res, res ) );
20362044
res = _mm_add_ss( res, _mm_movehdup_ps( res ) );
2037-
2045+
20382046
sumf = _mm_cvtss_f32( res );
20392047
#elif defined(__AVX__)
20402048
// Initialize accumulator with zeros

0 commit comments

Comments
 (0)