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/portable.h | |
| parent | 2ac46cb4d4133e5d5de90bacfc9b6e979d1d6046 (diff) | |
| download | nissy-core-e6be287bbfa6beda038ec8b085300c5dc9c2ecd8.tar.gz nissy-core-e6be287bbfa6beda038ec8b085300c5dc9c2ecd8.zip | |
Use macro for [static N]
Diffstat (limited to 'src/arch/portable.h')
| -rw-r--r-- | src/arch/portable.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/portable.h b/src/arch/portable.h index 4b66fb6..311d427 100644 --- a/src/arch/portable.h +++ b/src/arch/portable.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 | memcpy(c, cube->corner, 8); | 40 | memcpy(c, cube->corner, 8); |
| 41 | memcpy(e, cube->edge, 12); | 41 | memcpy(e, cube->edge, 12); |
| @@ -155,7 +155,7 @@ inverse(cube_t cube) | |||
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | STATIC_INLINE void | 157 | STATIC_INLINE void |
| 158 | copy_co(cube_t cube[static 1], cube_t co) | 158 | copy_co(cube_t cube[NON_NULL], cube_t co) |
| 159 | { | 159 | { |
| 160 | uint8_t c; | 160 | uint8_t c; |
| 161 | size_t i; | 161 | size_t i; |
| @@ -280,19 +280,19 @@ invcoord_esep(uint64_t esep) | |||
| 280 | } | 280 | } |
| 281 | 281 | ||
| 282 | STATIC_INLINE void | 282 | STATIC_INLINE void |
| 283 | copy_corners(cube_t dest[static 1], cube_t src) | 283 | copy_corners(cube_t dest[NON_NULL], cube_t src) |
| 284 | { | 284 | { |
| 285 | memcpy(&dest->corner, src.corner, sizeof(src.corner)); | 285 | memcpy(&dest->corner, src.corner, sizeof(src.corner)); |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | STATIC_INLINE void | 288 | STATIC_INLINE void |
| 289 | copy_edges(cube_t dest[static 1], cube_t src) | 289 | copy_edges(cube_t dest[NON_NULL], cube_t src) |
| 290 | { | 290 | { |
| 291 | memcpy(&dest->edge, src.edge, sizeof(src.edge)); | 291 | memcpy(&dest->edge, src.edge, sizeof(src.edge)); |
| 292 | } | 292 | } |
| 293 | 293 | ||
| 294 | STATIC_INLINE void | 294 | STATIC_INLINE void |
| 295 | set_eo(cube_t cube[static 1], uint64_t eo) | 295 | set_eo(cube_t cube[NON_NULL], uint64_t eo) |
| 296 | { | 296 | { |
| 297 | uint8_t i, sum, flip; | 297 | uint8_t i, sum, flip; |
| 298 | 298 | ||
