diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-04-04 12:02:56 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-04-04 12:02:56 +0200 |
| commit | e6be287bbfa6beda038ec8b085300c5dc9c2ecd8 (patch) | |
| tree | 55d0acb9efde811985157068f3656514b90344cf /src/arch/avx2.h | |
| parent | 2ac46cb4d4133e5d5de90bacfc9b6e979d1d6046 (diff) | |
| download | nissy-core-e6be287bbfa6beda038ec8b085300c5dc9c2ecd8.tar.gz nissy-core-e6be287bbfa6beda038ec8b085300c5dc9c2ecd8.zip | |
Use macro for [static N]
Diffstat (limited to 'src/arch/avx2.h')
| -rw-r--r-- | src/arch/avx2.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/avx2.h b/src/arch/avx2.h index b80b0fb..7d8deef 100644 --- a/src/arch/avx2.h +++ b/src/arch/avx2.h | |||
| @@ -35,7 +35,7 @@ popcount_u32(uint32_t x) | |||
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | STATIC void | 37 | STATIC void |
| 38 | pieces(cube_t cube[static 1], uint8_t c[static 8], uint8_t e[static 12]) | 38 | pieces(cube_t cube[NON_NULL], uint8_t c[SIZE(8)], uint8_t e[SIZE(12)]) |
| 39 | { | 39 | { |
| 40 | uint8_t aux[32]; | 40 | uint8_t aux[32]; |
| 41 | 41 | ||
| @@ -161,7 +161,7 @@ coord_co(cube_t c) | |||
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | STATIC_INLINE void | 163 | STATIC_INLINE void |
| 164 | copy_co(cube_t cube[static 1], cube_t co) | 164 | copy_co(cube_t cube[NON_NULL], cube_t co) |
| 165 | { | 165 | { |
| 166 | cube_t coclean; | 166 | cube_t coclean; |
| 167 | 167 | ||
| @@ -268,19 +268,19 @@ invcoord_esep(uint64_t esep) | |||
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | STATIC_INLINE void | 270 | STATIC_INLINE void |
| 271 | copy_corners(cube_t dest[static 1], cube_t src) | 271 | copy_corners(cube_t dest[NON_NULL], cube_t src) |
| 272 | { | 272 | { |
| 273 | *dest = _mm256_blend_epi32(*dest, src, 0x0F); | 273 | *dest = _mm256_blend_epi32(*dest, src, 0x0F); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | STATIC_INLINE void | 276 | STATIC_INLINE void |
| 277 | copy_edges(cube_t dest[static 1], cube_t src) | 277 | copy_edges(cube_t dest[NON_NULL], cube_t src) |
| 278 | { | 278 | { |
| 279 | *dest = _mm256_blend_epi32(*dest, src, 0xF0); | 279 | *dest = _mm256_blend_epi32(*dest, src, 0xF0); |
| 280 | } | 280 | } |
| 281 | 281 | ||
| 282 | STATIC_INLINE void | 282 | STATIC_INLINE void |
| 283 | set_eo(cube_t cube[static 1], uint64_t eo) | 283 | set_eo(cube_t cube[NON_NULL], uint64_t eo) |
| 284 | { | 284 | { |
| 285 | uint64_t eo12, eotop, eobot; | 285 | uint64_t eo12, eotop, eobot; |
| 286 | __m256i veo; | 286 | __m256i veo; |
