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.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/arch/portable.h b/src/arch/portable.h
index d673f15..c7f2de0 100644
--- a/src/arch/portable.h
+++ b/src/arch/portable.h
@@ -367,3 +367,19 @@ is_eo_even(cube_t cube)
367 367
368 return count % 2 == 0; 368 return count % 2 == 0;
369} 369}
370
371STATIC_INLINE uint64_t
372coord_epudsep(cube_t cube)
373{
374 return coord_epudsep_array(cube.edge);
375}
376
377STATIC_INLINE cube_t
378invcoord_epudsep(uint64_t c)
379{
380 cube_t ret;
381
382 ret = SOLVED_CUBE;
383 invcoord_epudsep_array(c, ret.edge);
384 return ret;
385}

Generated with cgit - Back to sebastiano.tronto.net