diff options
Diffstat (limited to 'src/solvers/distribution.h')
| -rw-r--r-- | src/solvers/distribution.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/solvers/distribution.h b/src/solvers/distribution.h index 7adc964..78b9b5e 100644 --- a/src/solvers/distribution.h +++ b/src/solvers/distribution.h | |||
| @@ -10,13 +10,13 @@ typedef struct { | |||
| 10 | const unsigned char *table; | 10 | const unsigned char *table; |
| 11 | } getdistribution_data_t; | 11 | } getdistribution_data_t; |
| 12 | 12 | ||
| 13 | STATIC void *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 [static INFO_DISTRIBUTION_LEN], const tableinfo_t [static 1]); |
| 16 | STATIC bool distribution_equal(const uint64_t [static INFO_DISTRIBUTION_LEN], | 16 | STATIC bool distribution_equal(const uint64_t [static INFO_DISTRIBUTION_LEN], |
| 17 | const uint64_t [static INFO_DISTRIBUTION_LEN], uint8_t); | 17 | const uint64_t [static INFO_DISTRIBUTION_LEN], uint8_t); |
| 18 | 18 | ||
| 19 | STATIC void * | 19 | STATIC wrapthread_return_t |
| 20 | getdistribution_runthread(void *arg) | 20 | getdistribution_runthread(void *arg) |
| 21 | { | 21 | { |
| 22 | getdistribution_data_t *data = (getdistribution_data_t *)arg; | 22 | getdistribution_data_t *data = (getdistribution_data_t *)arg; |
| @@ -33,7 +33,7 @@ getdistribution_runthread(void *arg) | |||
| 33 | for (j = 0; j < ENTRIES_PER_BYTE(k); j++) | 33 | for (j = 0; j < ENTRIES_PER_BYTE(k); j++) |
| 34 | data->distr[(table[i] & (m << (j*k))) >> (j*k)]++; | 34 | data->distr[(table[i] & (m << (j*k))) >> (j*k)]++; |
| 35 | 35 | ||
| 36 | return NULL; | 36 | return wrapthread_return_val; |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | STATIC void | 39 | STATIC void |
