File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,6 @@ typedef double ggml_float;
188
188
#else
189
189
#if !defined(__riscv )
190
190
#include <immintrin.h>
191
- #if (defined(__GNUC__ ) && __GNUC__ >= 8 ) || defined(__INTEL_COMPILER )
192
- #define MM256_SET_M128I (a , b ) _mm256_set_m128i((a), (b))
193
- #else
194
- #define MM256_SET_M128I (a , b ) _mm256_insertf128_si256(_mm256_castsi128_si256(b), (a), 1)
195
- #endif
196
191
#endif
197
192
#endif
198
193
#endif
@@ -479,6 +474,12 @@ static const size_t CACHE_LINE_SIZE_F32 = CACHE_LINE_SIZE/sizeof(float);
479
474
// quantization
480
475
//
481
476
477
+ #if (defined(__GNUC__ ) && __GNUC__ >= 8 ) || defined(__INTEL_COMPILER )
478
+ #define MM256_SET_M128I (a , b ) _mm256_set_m128i((a), (b))
479
+ #else
480
+ #define MM256_SET_M128I (a , b ) _mm256_insertf128_si256(_mm256_castsi128_si256(b), (a), 1)
481
+ #endif
482
+
482
483
#if defined(__AVX__ ) || defined(__AVX2__ ) || defined(__AVX512F__ ) || defined(__SSSE3__ )
483
484
// multiply int8_t, add results pairwise twice
484
485
static inline __m128i mul_sum_i8_pairs (const __m128i x , const __m128i y ) {
You can’t perform that action at this time.
0 commit comments