From 18c9a8b8905304cf5f8fc15825769046a3144866 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 18 Aug 2024 14:26:45 +0200 Subject: Reorganized folder structure --- src/arch/arch.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/arch/arch.h (limited to 'src/arch/arch.h') diff --git a/src/arch/arch.h b/src/arch/arch.h new file mode 100644 index 0000000..d5e0218 --- /dev/null +++ b/src/arch/arch.h @@ -0,0 +1,41 @@ +#if defined(CUBE_AVX2) + +#include + +typedef __m256i cube_t; + +#if !defined(TEST_H) +#include "common.h" +#include "avx2.h" +#endif + +#elif defined(CUBE_NEON) + +#include +#include + +typedef struct { + uint8x16_t corner; + uint8x16_t edge; +} cube_t; + +#if !defined(TEST_H) +#include "common.h" +#include "neon.h" +#endif + +#else + +#include + +typedef struct { + uint8_t corner[8]; + uint8_t edge[12]; +} cube_t; + +#if !defined(TEST_H) +#include "common.h" +#include "portable.h" +#endif + +#endif -- cgit v1.3