aboutsummaryrefslogtreecommitdiff
path: root/src/arch/portable.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-08-06 16:34:21 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-08-06 16:52:12 +0200
commit57a7520545134ab95f7bb0397dcbe991c906a3e9 (patch)
tree689e20a92ec3830533d2fb868e5dc141dec45877 /src/arch/portable.h
parenta5c9b857a346343443baf49679eebf12c18b4008 (diff)
downloadnissy-core-57a7520545134ab95f7bb0397dcbe991c906a3e9.tar.gz
nissy-core-57a7520545134ab95f7bb0397dcbe991c906a3e9.zip
Added HTR solver
Diffstat (limited to '')
-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