aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/coordinate.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-05 08:53:38 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-05 08:55:25 +0200
commitfd5ddb3db9f50411ca579d84f225f265ca35b56a (patch)
treeb659112cc0e2abd6c7edb08b0938c0d2de4ca066 /src/solvers/h48/coordinate.h
parentc9e2d6466e42d6b779ac9ffa7c5ee9a9c7558df8 (diff)
downloadnissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.tar.gz
nissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.zip
Rename constants from _underscore to CAPS
Diffstat (limited to 'src/solvers/h48/coordinate.h')
-rw-r--r--src/solvers/h48/coordinate.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/solvers/h48/coordinate.h b/src/solvers/h48/coordinate.h
index 47b805d..4da5575 100644
--- a/src/solvers/h48/coordinate.h
+++ b/src/solvers/h48/coordinate.h
@@ -1,15 +1,15 @@
1#define H48_ESIZE(h) ((_12c4 * _8c4) << (int64_t)(h)) 1#define H48_ESIZE(h) ((COMB_12_4 * COMB_8_4) << (int64_t)(h))
2 2
3#define COCLASS_MASK (UINT32_C(0xFFFF) << UINT32_C(16)) 3#define COCLASS_MASK (UINT32_C(0xFFFF) << UINT32_C(16))
4#define COCLASS(x) (((x) & COCLASS_MASK) >> UINT32_C(16)) 4#define COCLASS(x) (((x) & COCLASS_MASK) >> UINT32_C(16))
5#define TTREP_MASK (UINT32_C(0xFF) << UINT32_C(8)) 5#define TTREP_MASK (UINT32_C(0xFF) << UINT32_C(8))
6#define TTREP(x) (((x) & TTREP_MASK) >> UINT32_C(8)) 6#define TTREP(x) (((x) & TTREP_MASK) >> UINT32_C(8))
7 7
8_static_inline int64_t coord_h48(cube_t, const uint32_t *, uint8_t); 8STATIC_INLINE int64_t coord_h48(cube_t, const uint32_t *, uint8_t);
9_static_inline int64_t coord_h48_edges(cube_t, int64_t, uint8_t, uint8_t); 9STATIC_INLINE int64_t coord_h48_edges(cube_t, int64_t, uint8_t, uint8_t);
10_static_inline cube_t invcoord_h48(int64_t, const cube_t *, uint8_t); 10STATIC_INLINE cube_t invcoord_h48(int64_t, const cube_t *, uint8_t);
11 11
12_static_inline int64_t 12STATIC_INLINE int64_t
13coord_h48(cube_t c, const uint32_t *cocsepdata, uint8_t h) 13coord_h48(cube_t c, const uint32_t *cocsepdata, uint8_t h)
14{ 14{
15 int64_t cocsep, coclass; 15 int64_t cocsep, coclass;
@@ -26,7 +26,7 @@ coord_h48(cube_t c, const uint32_t *cocsepdata, uint8_t h)
26 return coord_h48_edges(c, coclass, ttrep, h); 26 return coord_h48_edges(c, coclass, ttrep, h);
27} 27}
28 28
29_static_inline int64_t 29STATIC_INLINE int64_t
30coord_h48_edges(cube_t c, int64_t coclass, uint8_t ttrep, uint8_t h) 30coord_h48_edges(cube_t c, int64_t coclass, uint8_t ttrep, uint8_t h)
31{ 31{
32 cube_t d; 32 cube_t d;
@@ -45,7 +45,7 @@ This function does not necessarily return a cube whose coordinate is
45the given value, because it works up to symmetry. This means that the 45the given value, because it works up to symmetry. This means that the
46returned cube is a transformed cube of one that gives the correct value. 46returned cube is a transformed cube of one that gives the correct value.
47*/ 47*/
48_static_inline cube_t 48STATIC_INLINE cube_t
49invcoord_h48(int64_t i, const cube_t *crep, uint8_t h) 49invcoord_h48(int64_t i, const cube_t *crep, uint8_t h)
50{ 50{
51 cube_t ret; 51 cube_t ret;

Generated with cgit - Back to sebastiano.tronto.net