diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-25 18:35:47 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-25 18:35:47 +0100 |
| commit | 56048d13b73ec6e6a9c59d62e82f41e69a3994bd (patch) | |
| tree | 49fc5d50e739a399897425756c08a73ba5924ddb /src/arch/common.h | |
| parent | 0f4931c8de298b0f97aba1757c9538f48adb30c6 (diff) | |
| download | nissy-core-56048d13b73ec6e6a9c59d62e82f41e69a3994bd.tar.gz nissy-core-56048d13b73ec6e6a9c59d62e82f41e69a3994bd.zip | |
More safety with pointers using VLA function parameters
Diffstat (limited to 'src/arch/common.h')
| -rw-r--r-- | src/arch/common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/common.h b/src/arch/common.h index 52e0fc7..5c1efde 100644 --- a/src/arch/common.h +++ b/src/arch/common.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | STATIC_INLINE int popcount_u32(uint32_t); | 1 | STATIC_INLINE int popcount_u32(uint32_t); |
| 2 | 2 | ||
| 3 | STATIC void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]); | 3 | STATIC void pieces(cube_t [static 1], uint8_t [static 8], uint8_t [static 12]); |
| 4 | STATIC_INLINE bool equal(cube_t, cube_t); | 4 | STATIC_INLINE bool equal(cube_t, cube_t); |
| 5 | STATIC_INLINE cube_t invertco(cube_t); | 5 | STATIC_INLINE cube_t invertco(cube_t); |
| 6 | STATIC_INLINE cube_t compose_edges(cube_t, cube_t); | 6 | STATIC_INLINE cube_t compose_edges(cube_t, cube_t); |
| @@ -14,9 +14,9 @@ STATIC_INLINE int64_t coord_cocsep(cube_t); | |||
| 14 | STATIC_INLINE int64_t coord_eo(cube_t); | 14 | STATIC_INLINE int64_t coord_eo(cube_t); |
| 15 | STATIC_INLINE int64_t coord_esep(cube_t); | 15 | STATIC_INLINE int64_t coord_esep(cube_t); |
| 16 | 16 | ||
| 17 | STATIC_INLINE void copy_corners(cube_t *, cube_t); | 17 | STATIC_INLINE void copy_corners(cube_t [static 1], cube_t); |
| 18 | STATIC_INLINE void copy_edges(cube_t *, cube_t); | 18 | STATIC_INLINE void copy_edges(cube_t [static 1], cube_t); |
| 19 | STATIC_INLINE void set_eo(cube_t *, int64_t); | 19 | STATIC_INLINE void set_eo(cube_t [static 1], int64_t); |
| 20 | STATIC_INLINE cube_t invcoord_esep(int64_t); | 20 | STATIC_INLINE cube_t invcoord_esep(int64_t); |
| 21 | 21 | ||
| 22 | STATIC_INLINE void invcoord_esep_array(int64_t, int64_t, uint8_t[static 12]); | 22 | STATIC_INLINE void invcoord_esep_array(int64_t, int64_t, uint8_t[static 12]); |
