aboutsummaryrefslogtreecommitdiff
path: root/src/solve_h48.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-05-17 17:42:43 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-05-17 17:42:43 +0200
commit1809d7b212128fcdcb481002a17db5dc97a15e03 (patch)
tree4e045b4fefc5e229969891b0e1963dd683bd46ad /src/solve_h48.h
parentd26d9e46d305b3ab3c6ae3b55f1859cf413a1c94 (diff)
downloadnissy-core-1809d7b212128fcdcb481002a17db5dc97a15e03.tar.gz
nissy-core-1809d7b212128fcdcb481002a17db5dc97a15e03.zip
Added inverse eo and copy_{edges,corners}
Diffstat (limited to 'src/solve_h48.h')
-rw-r--r--src/solve_h48.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/solve_h48.h b/src/solve_h48.h
index e3e6de1..2fe1d69 100644
--- a/src/solve_h48.h
+++ b/src/solve_h48.h
@@ -88,16 +88,17 @@ invcoord_h48(
88 cube_fast_t ret; 88 cube_fast_t ret;
89 int64_t coclass, ee, esep, eo; 89 int64_t coclass, ee, esep, eo;
90 90
91 DBG_ASSERT(h <= 11, cubetofast(zero),
92 "invcoord_h48: h must be between 0 and 11\n");
93
91 coclass = i / H48_ESIZE; 94 coclass = i / H48_ESIZE;
92 ee = i % H48_ESIZE; 95 ee = i % H48_ESIZE;
93 esep = ee >> h; 96 esep = ee >> h;
94 eo = (ee & ((1<<h)-1)) << (11-h); 97 eo = (ee & ((1<<h)-1)) << (11-h);
95 98
96/* TODO: implement set_stuff methods 99 copy_corners_fast(&ret, crep[coclass]);
97 ret.c = crep[coclass]; 100 copy_edges_fast(&ret, erep[esep]);
98 ret.e = erep[esep];
99 set_eo_fast(&ret, eo); 101 set_eo_fast(&ret, eo);
100*/
101 102
102 return ret; 103 return ret;
103} 104}

Generated with cgit - Back to sebastiano.tronto.net