diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-09-17 21:50:34 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-09-17 21:50:34 +0200 |
| commit | 1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88 (patch) | |
| tree | 3eddf00f6f44356596b688325d4ef197c0e673e0 /src/arch | |
| parent | aa306fa0a2047f30d585da7923f963e8d321aa0b (diff) | |
| download | nissy-core-1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88.tar.gz nissy-core-1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88.zip | |
Added include guardsHEADmasterinclude-guards
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/arch.h | 5 | ||||
| -rw-r--r-- | src/arch/avx2.h | 5 | ||||
| -rw-r--r-- | src/arch/common.h | 5 | ||||
| -rw-r--r-- | src/arch/neon.h | 5 | ||||
| -rw-r--r-- | src/arch/portable.h | 5 |
5 files changed, 25 insertions, 0 deletions
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 @@ | |||
| 1 | #ifndef ARCH_ARCH_H | ||
| 2 | #define ARCH_ARCH_H | ||
| 3 | |||
| 1 | #if defined(AVX2) | 4 | #if defined(AVX2) |
| 2 | 5 | ||
| 3 | #include <immintrin.h> | 6 | #include <immintrin.h> |
| @@ -36,3 +39,5 @@ typedef struct { | |||
| 36 | #endif | 39 | #endif |
| 37 | 40 | ||
| 38 | #endif | 41 | #endif |
| 42 | |||
| 43 | #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 @@ | |||
| 1 | #ifndef ARCH_AVX2_H | ||
| 2 | #define ARCH_AVX2_H | ||
| 3 | |||
| 1 | #define CO2_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x6060606060606060)) | 4 | #define CO2_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x6060606060606060)) |
| 2 | #define COCW_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x2020202020202020)) | 5 | #define COCW_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x2020202020202020)) |
| 3 | #define CP_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x0707070707070707)) | 6 | #define CP_AVX2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x0707070707070707)) |
| @@ -478,3 +481,5 @@ invcoord_epudsep(uint64_t i) | |||
| 478 | 481 | ||
| 479 | return _mm256_or_si256(elow, cube); | 482 | return _mm256_or_si256(elow, cube); |
| 480 | } | 483 | } |
| 484 | |||
| 485 | #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 @@ | |||
| 1 | #ifndef ARCH_COMMON_H | ||
| 2 | #define ARCH_COMMON_H | ||
| 3 | |||
| 1 | #define EOSHIFT UINT8_C(4) | 4 | #define EOSHIFT UINT8_C(4) |
| 2 | #define COSHIFT UINT8_C(5) | 5 | #define COSHIFT UINT8_C(5) |
| 3 | 6 | ||
| @@ -126,3 +129,5 @@ invcoord_epudsep_array(uint64_t c, uint8_t ret[8]) | |||
| 126 | k -= is; | 129 | k -= is; |
| 127 | } | 130 | } |
| 128 | } | 131 | } |
| 132 | |||
| 133 | #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 @@ | |||
| 1 | #ifndef ARCH_NEON_H | ||
| 2 | #define ARCH_NEON_H | ||
| 3 | |||
| 1 | #define CO2_NEON vdup_n_u8(0x60) | 4 | #define CO2_NEON vdup_n_u8(0x60) |
| 2 | #define COCW_NEON vdup_n_u8(0x20) | 5 | #define COCW_NEON vdup_n_u8(0x20) |
| 3 | #define EO_NEON vdupq_n_u8(0x10) | 6 | #define EO_NEON vdupq_n_u8(0x10) |
| @@ -557,3 +560,5 @@ invcoord_epudsep(uint64_t i) | |||
| 557 | .edge = vcombine_u8(vld1_u8(e), vld1_u8(SOLVED_H)) | 560 | .edge = vcombine_u8(vld1_u8(e), vld1_u8(SOLVED_H)) |
| 558 | }; | 561 | }; |
| 559 | } | 562 | } |
| 563 | |||
| 564 | #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 @@ | |||
| 1 | #ifndef ARCH_PORTABLE_H | ||
| 2 | #define ARCH_PORTABLE_H | ||
| 3 | |||
| 1 | #define STATIC_CUBE(c_ufr, c_ubl, c_dfl, c_dbr, c_ufl, c_ubr, c_dfr, c_dbl, \ | 4 | #define STATIC_CUBE(c_ufr, c_ubl, c_dfl, c_dbr, c_ufl, c_ubr, c_dfr, c_dbl, \ |
| 2 | e_uf, e_ub, e_db, e_df, e_ur, e_ul, e_dl, e_dr, e_fr, e_fl, e_bl, e_br) \ | 5 | e_uf, e_ub, e_db, e_df, e_ur, e_ul, e_dl, e_dr, e_fr, e_fl, e_bl, e_br) \ |
| 3 | ((cube_t) { \ | 6 | ((cube_t) { \ |
| @@ -407,3 +410,5 @@ invcoord_epudsep(uint64_t c) | |||
| 407 | invcoord_epudsep_array(c, ret.edge); | 410 | invcoord_epudsep_array(c, ret.edge); |
| 408 | return ret; | 411 | return ret; |
| 409 | } | 412 | } |
| 413 | |||
| 414 | #endif /* ARCH_PORTABLE_H */ | ||
