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/common.h | |
| parent | 2ac46cb4d4133e5d5de90bacfc9b6e979d1d6046 (diff) | |
| download | nissy-core-e6be287bbfa6beda038ec8b085300c5dc9c2ecd8.tar.gz nissy-core-e6be287bbfa6beda038ec8b085300c5dc9c2ecd8.zip | |
Use macro for [static N]
Diffstat (limited to '')
| -rw-r--r-- | src/arch/common.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/arch/common.h b/src/arch/common.h index 4412562..2a83fbf 100644 --- a/src/arch/common.h +++ b/src/arch/common.h | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | 14 | ||
| 15 | STATIC_INLINE int popcount_u32(uint32_t); | 15 | STATIC_INLINE int popcount_u32(uint32_t); |
| 16 | 16 | ||
| 17 | STATIC void pieces(cube_t [static 1], uint8_t [static 8], uint8_t [static 12]); | 17 | STATIC void pieces(cube_t [NON_NULL], uint8_t [SIZE(8)], uint8_t [SIZE(12)]); |
| 18 | STATIC_INLINE bool equal(cube_t, cube_t); | 18 | STATIC_INLINE bool equal(cube_t, cube_t); |
| 19 | STATIC_INLINE cube_t invertco(cube_t); | 19 | STATIC_INLINE cube_t invertco(cube_t); |
| 20 | STATIC_INLINE cube_t compose_edges(cube_t, cube_t); | 20 | STATIC_INLINE cube_t compose_edges(cube_t, cube_t); |
| @@ -34,12 +34,12 @@ STATIC_INLINE cube_t invcoord_epudsep(uint64_t); | |||
| 34 | 34 | ||
| 35 | STATIC_INLINE bool is_eo_even(cube_t); | 35 | STATIC_INLINE bool is_eo_even(cube_t); |
| 36 | 36 | ||
| 37 | STATIC_INLINE void copy_corners(cube_t [static 1], cube_t); | 37 | STATIC_INLINE void copy_corners(cube_t [NON_NULL], cube_t); |
| 38 | STATIC_INLINE void copy_co(cube_t [static 1], cube_t); | 38 | STATIC_INLINE void copy_co(cube_t [NON_NULL], cube_t); |
| 39 | STATIC_INLINE void copy_edges(cube_t [static 1], cube_t); | 39 | STATIC_INLINE void copy_edges(cube_t [NON_NULL], cube_t); |
| 40 | STATIC_INLINE void set_eo(cube_t [static 1], uint64_t); | 40 | STATIC_INLINE void set_eo(cube_t [NON_NULL], uint64_t); |
| 41 | 41 | ||
| 42 | STATIC_INLINE void invcoord_esep_array(uint64_t, uint64_t, uint8_t[static 12]); | 42 | STATIC_INLINE void invcoord_esep_array(uint64_t, uint64_t, uint8_t[SIZE(12)]); |
| 43 | STATIC_INLINE cube_t invcoord_eoesep(uint64_t); | 43 | STATIC_INLINE cube_t invcoord_eoesep(uint64_t); |
| 44 | STATIC_INLINE uint64_t coord_epudsep_array(const uint8_t [8]); | 44 | STATIC_INLINE uint64_t coord_epudsep_array(const uint8_t [8]); |
| 45 | STATIC_INLINE void invcoord_epudsep_array(uint64_t, uint8_t [8]); | 45 | STATIC_INLINE void invcoord_epudsep_array(uint64_t, uint8_t [8]); |
| @@ -52,7 +52,7 @@ STATIC_INLINE uint64_t coord_epe(cube_t); | |||
| 52 | STATIC_INLINE cube_t invcoord_epe(uint64_t); | 52 | STATIC_INLINE cube_t invcoord_epe(uint64_t); |
| 53 | 53 | ||
| 54 | STATIC_INLINE void | 54 | STATIC_INLINE void |
| 55 | invcoord_esep_array(uint64_t set1, uint64_t set2, uint8_t mem[static 12]) | 55 | invcoord_esep_array(uint64_t set1, uint64_t set2, uint8_t mem[SIZE(12)]) |
| 56 | { | 56 | { |
| 57 | uint64_t bit1, bit2, i, j, jj, k, l, s, v, w, is1; | 57 | uint64_t bit1, bit2, i, j, jj, k, l, s, v, w, is1; |
| 58 | uint8_t slice[3] = {0}; | 58 | uint8_t slice[3] = {0}; |
