nissy-core

The "engine" of nissy, including the H48 optimal solver.
git clone https://git.tronto.net/nissy-core
Download | Log | Files | Refs | README | LICENSE

commit d60c210bdadff5d8f5b9dc73a701560d54f69fff
parent 5bb2b50a3f92c727ddf468df16bbc60a173d3115
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Fri,  9 May 2025 21:02:32 +0200

Fixes

Diffstat:
Mbuild | 2+-
Mtest/100_gendata_cocsep/gendata_cocsep_tests.c | 2+-
Mtest/105_gendata_eoesep/gendata_eoesep_tests.c | 4++--
Mtest/120_gendata_eo/gendata_eo_tests.c | 4++--
Mtest/121_coorddata_dr/coorddata_dr.c | 2+-
Mtest/122_coorddata_dreo/coorddata_dreo.c | 2+-
6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/build b/build @@ -119,7 +119,7 @@ parsesanitize() { # Set variables to default values if unset CC=${CC:-"cc"} EMCC=${EMCC:-"emcc"} -NODE=${NODE:-"emcc"} +NODE=${NODE:-"node"} THREADS=${THREADS:-"$(detectthreads)"} ARCH=${ARCH:-"$(detectarch)"} OPTIMIZE=${OPTIMIZE:-"-O3"} diff --git a/test/100_gendata_cocsep/gendata_cocsep_tests.c b/test/100_gendata_cocsep/gendata_cocsep_tests.c @@ -3,7 +3,7 @@ #define BUF_SIZE 2000000 size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); -bool readtableinfo(uint64_t, const unsigned char *, tableinfo_t *); +int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *); void run(void) { unsigned char buf[BUF_SIZE]; diff --git a/test/105_gendata_eoesep/gendata_eoesep_tests.c b/test/105_gendata_eoesep/gendata_eoesep_tests.c @@ -26,7 +26,7 @@ The test does not generate the full table. For reference, these are the values: unsigned char buf[FULLSIZE]; size_t gendata_eoesep(unsigned char [static FULLSIZE], uint8_t); -bool readtableinfo(uint64_t, const unsigned char *, tableinfo_t *); +int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *); void run(void) { uint32_t i; @@ -40,7 +40,7 @@ void run(void) { } printf("%zu\n", result); - printf("Classes (ESEP only): %zu\n", info.classes); + printf("Classes (ESEP only): %" PRIu64 "\n", info.classes); for (i = 0; i <= DEPTH; i++) printf("%" PRIu32 ": %" PRIu64 "\n", i, info.distribution[i]); } diff --git a/test/120_gendata_eo/gendata_eo_tests.c b/test/120_gendata_eo/gendata_eo_tests.c @@ -17,8 +17,8 @@ Pruning table values (from nissy): unsigned char buf[FULLSIZE]; -size_t gendata_coord_dispatch(const char *, unsigned char *); -bool readtableinfo(uint64_t, const unsigned char *, tableinfo_t *); +int64_t gendata_coord_dispatch(const char *, unsigned char *); +int64_t readtableinfo(size_t, const unsigned char *, tableinfo_t *); void run(void) { uint32_t i; diff --git a/test/121_coorddata_dr/coorddata_dr.c b/test/121_coorddata_dr/coorddata_dr.c @@ -7,7 +7,7 @@ cube_t transform(cube_t, uint8_t); uint64_t coordinate_dr_coord(cube_t, const unsigned char *); cube_t coordinate_dr_cube(uint64_t, const unsigned char *); -uint64_t coordinate_dr_gendata(unsigned char *); +size_t coordinate_dr_gendata(unsigned char *); void run(void) { bool found; diff --git a/test/122_coorddata_dreo/coorddata_dreo.c b/test/122_coorddata_dreo/coorddata_dreo.c @@ -7,7 +7,7 @@ cube_t transform(cube_t, uint8_t); uint64_t coordinate_dreo_coord(cube_t, const unsigned char *); cube_t coordinate_dreo_cube(uint64_t, const unsigned char *); -uint64_t coordinate_dreo_gendata(unsigned char *); +size_t coordinate_dreo_gendata(unsigned char *); void run(void) { bool found;