aboutsummaryrefslogtreecommitdiff
path: root/src/arch/avx2.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-04-04 12:02:56 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-04-04 12:02:56 +0200
commite6be287bbfa6beda038ec8b085300c5dc9c2ecd8 (patch)
tree55d0acb9efde811985157068f3656514b90344cf /src/arch/avx2.h
parent2ac46cb4d4133e5d5de90bacfc9b6e979d1d6046 (diff)
downloadnissy-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.h10
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
37STATIC void 37STATIC void
38pieces(cube_t cube[static 1], uint8_t c[static 8], uint8_t e[static 12]) 38pieces(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
163STATIC_INLINE void 163STATIC_INLINE void
164copy_co(cube_t cube[static 1], cube_t co) 164copy_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
270STATIC_INLINE void 270STATIC_INLINE void
271copy_corners(cube_t dest[static 1], cube_t src) 271copy_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
276STATIC_INLINE void 276STATIC_INLINE void
277copy_edges(cube_t dest[static 1], cube_t src) 277copy_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
282STATIC_INLINE void 282STATIC_INLINE void
283set_eo(cube_t cube[static 1], uint64_t eo) 283set_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;

Generated with cgit - Back to sebastiano.tronto.net