aboutsummaryrefslogtreecommitdiff
path: root/src/arch/portable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/portable.h')
-rw-r--r--src/arch/portable.h10
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
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 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
157STATIC_INLINE void 157STATIC_INLINE void
158copy_co(cube_t cube[static 1], cube_t co) 158copy_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
282STATIC_INLINE void 282STATIC_INLINE void
283copy_corners(cube_t dest[static 1], cube_t src) 283copy_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
288STATIC_INLINE void 288STATIC_INLINE void
289copy_edges(cube_t dest[static 1], cube_t src) 289copy_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
294STATIC_INLINE void 294STATIC_INLINE void
295set_eo(cube_t cube[static 1], uint64_t eo) 295set_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

Generated with cgit - Back to sebastiano.tronto.net