From a9ce50120b68db3669aaadeac348db8926bc15c4 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 19 Nov 2023 11:19:14 +0100 Subject: Improved architecture detection --- cube.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cube.c') diff --git a/cube.c b/cube.c index b5a30a6..895c088 100644 --- a/cube.c +++ b/cube.c @@ -2,9 +2,7 @@ #include #include -#ifdef CUBE_AVX2 -#include -#endif +#include "cube.h" #ifdef DEBUG #include @@ -25,8 +23,6 @@ #define DBG_ASSERT(condition, retval, ...) #endif -#include "cube.h" - /****************************************************************************** Section: constants, strings and other stuff ******************************************************************************/ @@ -495,6 +491,8 @@ Note: the #ifdef below is closed in the next section. #ifdef CUBE_AVX2 +#include + typedef __m256i cube_fast_t; #define _co2_avx2 _mm256_set_epi64x(0, 0, 0, 0x6060606060606060) -- cgit v1.3