aboutsummaryrefslogtreecommitdiff
path: root/tools/200_stats_tables_h48
diff options
context:
space:
mode:
Diffstat (limited to 'tools/200_stats_tables_h48')
-rw-r--r--tools/200_stats_tables_h48/stats_tables_h48.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/200_stats_tables_h48/stats_tables_h48.c b/tools/200_stats_tables_h48/stats_tables_h48.c
index 11df137..8e80269 100644
--- a/tools/200_stats_tables_h48/stats_tables_h48.c
+++ b/tools/200_stats_tables_h48/stats_tables_h48.c
@@ -17,11 +17,11 @@ typedef struct {
17 int64_t v[12][100]; 17 int64_t v[12][100];
18} thread_arg_t; 18} thread_arg_t;
19 19
20uint64_t rand64(void) { 20uint64_t randll(void) {
21 uint64_t i, ret; 21 long long int i, ret;
22 22
23 for (i = 0, ret = 0; i < 64; i++) 23 for (i = 0, ret = 0; i < 64; i++)
24 ret |= (uint64_t)(rand() % 2) << i; 24 ret |= (long long int)(rand() % 2) << i;
25 25
26 return ret; 26 return ret;
27} 27}
@@ -30,16 +30,16 @@ static void *
30run_thread(void *arg) 30run_thread(void *arg)
31{ 31{
32 char s[12], cube[22]; 32 char s[12], cube[22];
33 int64_t ep, eo, cp, co; 33 long long int ep, eo, cp, co;
34 int i, j; 34 int i, j;
35 35
36 thread_arg_t *a = (thread_arg_t *)arg; 36 thread_arg_t *a = (thread_arg_t *)arg;
37 37
38 for (i = 0; i < a->n; i++) { 38 for (i = 0; i < a->n; i++) {
39 ep = rand64(); 39 ep = randll();
40 eo = rand64(); 40 eo = randll();
41 cp = rand64(); 41 cp = randll();
42 co = rand64(); 42 co = randll();
43 nissy_getcube(ep, eo, cp, co, "fix", cube); 43 nissy_getcube(ep, eo, cp, co, "fix", cube);
44 nissy_solve(cube, "h48stats", NISSY_NISSFLAG_NORMAL, 44 nissy_solve(cube, "h48stats", NISSY_NISSFLAG_NORMAL,
45 0, MAXMOVES, 1, -1, size, buf, 12, s); 45 0, MAXMOVES, 1, -1, size, buf, 12, s);

Generated with cgit - Back to sebastiano.tronto.net