aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/coordinate.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-04 14:29:00 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-04 14:29:00 +0200
commit283effb16646112ee9c6bba57e021e80f322b29f (patch)
tree3c0ad588e550f86df21687e82a17e9f1f60443be /src/solvers/h48/coordinate.h
parentfc150adaf3bff133da0e59d842f13b7b21297fc0 (diff)
downloadnissy-core-283effb16646112ee9c6bba57e021e80f322b29f.tar.gz
nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.zip
Avoid repeating typedefs in tests
Diffstat (limited to 'src/solvers/h48/coordinate.h')
-rw-r--r--src/solvers/h48/coordinate.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/solvers/h48/coordinate.h b/src/solvers/h48/coordinate.h
index 25e13f9..6caac2a 100644
--- a/src/solvers/h48/coordinate.h
+++ b/src/solvers/h48/coordinate.h
@@ -1,9 +1,5 @@
1#define H48_ESIZE(h) ((COMB_12_4 * COMB_8_4) << (int64_t)(h)) 1/* Macros defined in a separate file for easier testing */
2 2#include "coordinate_macros.h"
3#define COCLASS_MASK (UINT32_C(0xFFFF) << UINT32_C(16))
4#define COCLASS(x) (((x) & COCLASS_MASK) >> UINT32_C(16))
5#define TTREP_MASK (UINT32_C(0xFF) << UINT32_C(8))
6#define TTREP(x) (((x) & TTREP_MASK) >> UINT32_C(8))
7 3
8STATIC_INLINE int64_t coord_h48(cube_t, const uint32_t *, uint8_t); 4STATIC_INLINE int64_t coord_h48(cube_t, const uint32_t *, uint8_t);
9STATIC_INLINE int64_t coord_h48_edges(cube_t, int64_t, uint8_t, uint8_t); 5STATIC_INLINE int64_t coord_h48_edges(cube_t, int64_t, uint8_t, uint8_t);

Generated with cgit - Back to sebastiano.tronto.net