aboutsummaryrefslogtreecommitdiff
path: root/src/arch/neon.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/neon.h
parent2ac46cb4d4133e5d5de90bacfc9b6e979d1d6046 (diff)
downloadnissy-core-e6be287bbfa6beda038ec8b085300c5dc9c2ecd8.tar.gz
nissy-core-e6be287bbfa6beda038ec8b085300c5dc9c2ecd8.zip
Use macro for [static N]
Diffstat (limited to 'src/arch/neon.h')
-rw-r--r--src/arch/neon.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/neon.h b/src/arch/neon.h
index f997813..1157938 100644
--- a/src/arch/neon.h
+++ b/src/arch/neon.h
@@ -48,7 +48,7 @@ popcount_u32(uint32_t x)
48} 48}
49 49
50STATIC void 50STATIC void
51pieces(cube_t cube[static 1], uint8_t c[static 8], uint8_t e[static 12]) 51pieces(cube_t cube[NON_NULL], uint8_t c[SIZE(8)], uint8_t e[SIZE(12)])
52{ 52{
53 // First 8 bytes of the corner vector are copied from the c array 53 // First 8 bytes of the corner vector are copied from the c array
54 vst1_u8(c, cube->corner); 54 vst1_u8(c, cube->corner);
@@ -233,7 +233,7 @@ coord_co(cube_t c)
233} 233}
234 234
235STATIC_INLINE void 235STATIC_INLINE void
236copy_co(cube_t cube[static 1], cube_t co) 236copy_co(cube_t cube[NON_NULL], cube_t co)
237{ 237{
238 uint8x8_t coclean; 238 uint8x8_t coclean;
239 239
@@ -329,19 +329,19 @@ coord_esep(cube_t c)
329} 329}
330 330
331STATIC_INLINE void 331STATIC_INLINE void
332copy_corners(cube_t dst[static 1], cube_t src) 332copy_corners(cube_t dst[NON_NULL], cube_t src)
333{ 333{
334 dst->corner = src.corner; 334 dst->corner = src.corner;
335} 335}
336 336
337STATIC_INLINE void 337STATIC_INLINE void
338copy_edges(cube_t dst[static 1], cube_t src) 338copy_edges(cube_t dst[NON_NULL], cube_t src)
339{ 339{
340 dst->edge = src.edge; 340 dst->edge = src.edge;
341} 341}
342 342
343STATIC_INLINE void 343STATIC_INLINE void
344set_eo(cube_t cube[static 1], uint64_t eo) 344set_eo(cube_t cube[NON_NULL], uint64_t eo)
345{ 345{
346 // Temp array to store the NEON vector 346 // Temp array to store the NEON vector
347 uint8_t mem[16]; 347 uint8_t mem[16];

Generated with cgit - Back to sebastiano.tronto.net