diff options
Diffstat (limited to 'src/solvers/distribution.h')
| -rw-r--r-- | src/solvers/distribution.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/solvers/distribution.h b/src/solvers/distribution.h index 78b9b5e..a996e3db 100644 --- a/src/solvers/distribution.h +++ b/src/solvers/distribution.h | |||
| @@ -12,9 +12,9 @@ typedef struct { | |||
| 12 | 12 | ||
| 13 | STATIC wrapthread_return_t getdistribution_runthread(void *); | 13 | STATIC wrapthread_return_t getdistribution_runthread(void *); |
| 14 | STATIC void getdistribution(const unsigned char *, | 14 | STATIC void getdistribution(const unsigned char *, |
| 15 | uint64_t [static INFO_DISTRIBUTION_LEN], const tableinfo_t [static 1]); | 15 | uint64_t [SIZE(INFO_DISTRIBUTION_LEN)], const tableinfo_t [NON_NULL]); |
| 16 | STATIC bool distribution_equal(const uint64_t [static INFO_DISTRIBUTION_LEN], | 16 | STATIC bool distribution_equal(const uint64_t [SIZE(INFO_DISTRIBUTION_LEN)], |
| 17 | const uint64_t [static INFO_DISTRIBUTION_LEN], uint8_t); | 17 | const uint64_t [SIZE(INFO_DISTRIBUTION_LEN)], uint8_t); |
| 18 | 18 | ||
| 19 | STATIC wrapthread_return_t | 19 | STATIC wrapthread_return_t |
| 20 | getdistribution_runthread(void *arg) | 20 | getdistribution_runthread(void *arg) |
| @@ -39,8 +39,8 @@ getdistribution_runthread(void *arg) | |||
| 39 | STATIC void | 39 | STATIC void |
| 40 | getdistribution( | 40 | getdistribution( |
| 41 | const unsigned char *table, | 41 | const unsigned char *table, |
| 42 | uint64_t distr[static INFO_DISTRIBUTION_LEN], | 42 | uint64_t distr[SIZE(INFO_DISTRIBUTION_LEN)], |
| 43 | const tableinfo_t info[static 1] | 43 | const tableinfo_t info[NON_NULL] |
| 44 | ) { | 44 | ) { |
| 45 | getdistribution_data_t targ[THREADS]; | 45 | getdistribution_data_t targ[THREADS]; |
| 46 | wrapthread_define_var_thread_t(thread[THREADS]); | 46 | wrapthread_define_var_thread_t(thread[THREADS]); |
| @@ -80,8 +80,8 @@ getdistribution( | |||
| 80 | 80 | ||
| 81 | STATIC bool | 81 | STATIC bool |
| 82 | distribution_equal( | 82 | distribution_equal( |
| 83 | const uint64_t expected[static INFO_DISTRIBUTION_LEN], | 83 | const uint64_t expected[SIZE(INFO_DISTRIBUTION_LEN)], |
| 84 | const uint64_t actual[static INFO_DISTRIBUTION_LEN], | 84 | const uint64_t actual[SIZE(INFO_DISTRIBUTION_LEN)], |
| 85 | uint8_t maxvalue | 85 | uint8_t maxvalue |
| 86 | ) | 86 | ) |
| 87 | { | 87 | { |
