diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-18 14:26:45 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-18 14:26:45 +0200 |
| commit | 18c9a8b8905304cf5f8fc15825769046a3144866 (patch) | |
| tree | a7807bb32b0a5d9ded7d3cedccc598f64a9b00fe /src/cube.c | |
| parent | f25a10e19eca294c4e6a99e4f80ce5cfd11a0e5f (diff) | |
| download | nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.tar.gz nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.zip | |
Reorganized folder structure
Diffstat (limited to 'src/cube.c')
| -rw-r--r-- | src/cube.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/cube.c b/src/cube.c deleted file mode 100644 index e8dedec..0000000 --- a/src/cube.c +++ /dev/null | |||
| @@ -1,55 +0,0 @@ | |||
| 1 | #include <inttypes.h> | ||
| 2 | #include <stdarg.h> | ||
| 3 | #include <stdbool.h> | ||
| 4 | #include <string.h> | ||
| 5 | |||
| 6 | void (*nissy_log)(const char *, ...); | ||
| 7 | |||
| 8 | #define LOG(...) if (nissy_log != NULL) nissy_log(__VA_ARGS__); | ||
| 9 | |||
| 10 | #ifdef DEBUG | ||
| 11 | #define _static | ||
| 12 | #define _static_inline | ||
| 13 | #define DBG_WARN(condition, ...) if (!(condition)) LOG(__VA_ARGS__); | ||
| 14 | #define DBG_ASSERT(condition, retval, ...) \ | ||
| 15 | if (!(condition)) { LOG(__VA_ARGS__); return retval; } | ||
| 16 | #else | ||
| 17 | #define _static static | ||
| 18 | #define _static_inline static inline | ||
| 19 | #define DBG_WARN(condition, ...) | ||
| 20 | #define DBG_ASSERT(condition, retval, ...) | ||
| 21 | #endif | ||
| 22 | |||
| 23 | #include "constants.h" | ||
| 24 | #include "utils.h" | ||
| 25 | |||
| 26 | #if defined(CUBE_AVX2) | ||
| 27 | #include <immintrin.h> | ||
| 28 | #include "cube_avx2.h" | ||
| 29 | #elif defined(CUBE_NEON) | ||
| 30 | #include <stdlib.h> | ||
| 31 | #include <arm_neon.h> | ||
| 32 | #include "cube_neon.h" | ||
| 33 | #else | ||
| 34 | #include <stdlib.h> /* TODO: check if can be removed */ | ||
| 35 | #include "cube_portable.h" | ||
| 36 | #endif | ||
| 37 | |||
| 38 | #include "io_move_trans.h" | ||
| 39 | #include "constant_cubes.h" | ||
| 40 | #include "cube_generic.h" | ||
| 41 | #include "io_cube.h" | ||
| 42 | |||
| 43 | /* TODO: work in progress */ | ||
| 44 | #if 0 | ||
| 45 | #include "constant_cubes_transform.h" | ||
| 46 | #include "cube_transform.h" | ||
| 47 | #else | ||
| 48 | #include "cube_transform_with_switch.h" | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #include "moves.h" | ||
| 52 | #include "solve_h48.h" | ||
| 53 | #include "solve_generic.h" | ||
| 54 | |||
| 55 | #include "cube_public.h" | ||
