From 1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 17 Sep 2026 21:50:34 +0200 Subject: Added include guards --- src/arch/arch.h | 5 +++++ src/arch/avx2.h | 5 +++++ src/arch/common.h | 5 +++++ src/arch/neon.h | 5 +++++ src/arch/portable.h | 5 +++++ 5 files changed, 25 insertions(+) (limited to 'src/arch') diff --git a/src/arch/arch.h b/src/arch/arch.h index aa4a5c5..c4efbd5 100644 --- a/src/arch/arch.h +++ b/src/arch/arch.h @@ -1,3 +1,6 @@ +#ifndef ARCH_ARCH_H +#define ARCH_ARCH_H + #if defined(AVX2) #include @@ -36,3 +39,5 @@ typedef struct { #endif #endif + +#endif /* ARCH_ARCH_H */ diff --git a/src/arch/avx2.h b/src/arch/avx2.h index 801419e..5b9ecc7 100644 --- a/src/arch/avx2.h +++ b/src/arch/avx2.h @@ -1,3 +1,6 @@ +#ifndef ARCH_AVX2_H +#define ARCH_AVX2_H + #define CO2_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x6060606060606060)) #define COCW_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x2020202020202020)) #define CP_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x0707070707070707)) @@ -478,3 +481,5 @@ invcoord_epudsep(uint64_t i) return _mm256_or_si256(elow, cube); } + +#endif /* ARCH_AVX2_H */ diff --git a/src/arch/common.h b/src/arch/common.h index a7c4a3b..973263f 100644 --- a/src/arch/common.h +++ b/src/arch/common.h @@ -1,3 +1,6 @@ +#ifndef ARCH_COMMON_H +#define ARCH_COMMON_H + #define EOSHIFT UINT8_C(4) #define COSHIFT UINT8_C(5) @@ -126,3 +129,5 @@ invcoord_epudsep_array(uint64_t c, uint8_t ret[8]) k -= is; } } + +#endif /* ARCH_COMMON_H */ diff --git a/src/arch/neon.h b/src/arch/neon.h index 501b722..faf3b8f 100644 --- a/src/arch/neon.h +++ b/src/arch/neon.h @@ -1,3 +1,6 @@ +#ifndef ARCH_NEON_H +#define ARCH_NEON_H + #define CO2_NEON vdup_n_u8(0x60) #define COCW_NEON vdup_n_u8(0x20) #define EO_NEON vdupq_n_u8(0x10) @@ -557,3 +560,5 @@ invcoord_epudsep(uint64_t i) .edge = vcombine_u8(vld1_u8(e), vld1_u8(SOLVED_H)) }; } + +#endif /* ARCH_NEON_H */ diff --git a/src/arch/portable.h b/src/arch/portable.h index f1491f0..18fb6b8 100644 --- a/src/arch/portable.h +++ b/src/arch/portable.h @@ -1,3 +1,6 @@ +#ifndef ARCH_PORTABLE_H +#define ARCH_PORTABLE_H + #define STATIC_CUBE(c_ufr, c_ubl, c_dfl, c_dbr, c_ufl, c_ubr, c_dfr, c_dbl, \ e_uf, e_ub, e_db, e_df, e_ur, e_ul, e_dl, e_dr, e_fr, e_fl, e_bl, e_br) \ ((cube_t) { \ @@ -407,3 +410,5 @@ invcoord_epudsep(uint64_t c) invcoord_epudsep_array(c, ret.edge); return ret; } + +#endif /* ARCH_PORTABLE_H */ -- cgit v1.3