aboutsummaryrefslogtreecommitdiff
path: root/src/solve_h48.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/solve_h48.h')
-rw-r--r--src/solve_h48.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/solve_h48.h b/src/solve_h48.h
index 2fe1d69..d4a018b 100644
--- a/src/solve_h48.h
+++ b/src/solve_h48.h
@@ -39,8 +39,7 @@ typedef struct {
39} dfsarg_esep_t; 39} dfsarg_esep_t;
40 40
41_static_inline int64_t coord_h48(cube_fast_t, const uint32_t *, uint8_t); 41_static_inline int64_t coord_h48(cube_fast_t, const uint32_t *, uint8_t);
42_static_inline cube_fast_t invcoord_h48(int64_t, const uint32_t *, 42_static_inline cube_fast_t invcoord_h48(int64_t, const cube_fast_t *, uint8_t);
43 const cube_fast_t *, const cube_fast_t *, uint8_t);
44 43
45_static size_t gendata_cocsep(void *, uint64_t *, cube_fast_t *); 44_static size_t gendata_cocsep(void *, uint64_t *, cube_fast_t *);
46_static uint32_t gendata_cocsep_dfs(dfsarg_cocsep_t *); 45_static uint32_t gendata_cocsep_dfs(dfsarg_cocsep_t *);
@@ -77,13 +76,7 @@ coord_h48(cube_fast_t c, const uint32_t *cocsepdata, uint8_t h)
77} 76}
78 77
79_static_inline cube_fast_t 78_static_inline cube_fast_t
80invcoord_h48( 79invcoord_h48(int64_t i, const cube_fast_t *crep, uint8_t h)
81 int64_t i,
82 const uint32_t *cocsepdata,
83 const cube_fast_t *crep,
84 const cube_fast_t *erep,
85 uint8_t h
86)
87{ 80{
88 cube_fast_t ret; 81 cube_fast_t ret;
89 int64_t coclass, ee, esep, eo; 82 int64_t coclass, ee, esep, eo;
@@ -96,8 +89,8 @@ invcoord_h48(
96 esep = ee >> h; 89 esep = ee >> h;
97 eo = (ee & ((1<<h)-1)) << (11-h); 90 eo = (ee & ((1<<h)-1)) << (11-h);
98 91
92 ret = invcoord_fast_esep(esep);
99 copy_corners_fast(&ret, crep[coclass]); 93 copy_corners_fast(&ret, crep[coclass]);
100 copy_edges_fast(&ret, erep[esep]);
101 set_eo_fast(&ret, eo); 94 set_eo_fast(&ret, eo);
102 95
103 return ret; 96 return ret;

Generated with cgit - Back to sebastiano.tronto.net