5 #define PREFIX (PARAM_N / (PARAM_K + 1)) 6 #define NR_INPUTS (1 << PREFIX) 8 #define APX_NR_ELMS_LOG (PREFIX + 1) 10 #define NR_ROWS_LOG 20 13 #define OPTIM_SIMPLIFY_ROUND 1 16 #define COLL_DATA_SIZE_PER_TH (NR_SLOTS * 5) 19 #define SLEEP_RECHECK_RATIO 0.60 22 #define SLEEP_SKIP_RATIO 0.005 36 #error "NR_ROWS_LOG = 16 is currently broken - do not use" 38 #elif NR_ROWS_LOG == 18 40 #elif NR_ROWS_LOG == 19 42 #elif NR_ROWS_LOG == 20 && OPTIM_SIMPLIFY_ROUND 44 #elif NR_ROWS_LOG == 20 48 #define NR_ROWS (1 << NR_ROWS_LOG) 49 #define NR_SLOTS ((1 << (APX_NR_ELMS_LOG - NR_ROWS_LOG)) * OVERHEAD) 53 #define HT_SIZE (NR_ROWS * NR_SLOTS * SLOT_LEN) 55 #define FABCOIN_NONCE_LEN 32 57 #define FABCOIN_HASH_LEN 512/PARAM_N*((PARAM_N+7)/8) 67 #define BITS_PER_ROW 4 68 #define ROWS_PER_UINT 8 71 #define BITS_PER_ROW 8 72 #define ROWS_PER_UINT 4 81 #define xi_offset_for_round(round) (8 + ((round) / 2) * 4) 84 #define SOL_SIZE ((1 << PARAM_K) * 4)
uint values[MAX_SOLS][512]