From 9de887d8f178cec5693cafb03b8715804669f65e Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 3 Oct 2024 18:28:04 +0200 Subject: Improve gendata performance by replacing locks with atomic operations --- src/solvers/h48/stats.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/solvers/h48/stats.h') diff --git a/src/solvers/h48/stats.h b/src/solvers/h48/stats.h index 6e78ab5..ca4b72e 100644 --- a/src/solvers/h48/stats.h +++ b/src/solvers/h48/stats.h @@ -10,8 +10,8 @@ typedef struct { int8_t nmoves; int8_t depth; uint8_t moves[MAXLEN]; - uint32_t *cocsepdata; - uint8_t *h48data; + const uint32_t *cocsepdata; + const uint8_t *h48data; char *s; } dfsarg_solveh48stats_t; @@ -80,8 +80,8 @@ solve_h48stats( arg = (dfsarg_solveh48stats_t) { .cube = cube, - .cocsepdata = get_cocsepdata_ptr(data), - .h48data = get_h48data_ptr(data), + .cocsepdata = get_cocsepdata_constptr(data), + .h48data = get_h48data_constptr(data), .s = solutions }; -- cgit v1.3