Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Macros | Typedefs
param.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sols_s
 

Macros

#define PARAM_N   210
 
#define PARAM_K   9
 
#define PREFIX   (PARAM_N / (PARAM_K + 1))
 
#define NR_INPUTS   (1 << PREFIX)
 
#define APX_NR_ELMS_LOG   (PREFIX + 1)
 
#define NR_ROWS_LOG   20
 
#define OPTIM_SIMPLIFY_ROUND   1
 
#define COLL_DATA_SIZE_PER_TH   (NR_SLOTS * 5)
 
#define SLEEP_RECHECK_RATIO   0.60
 
#define SLEEP_SKIP_RATIO   0.005
 
#define OVERHEAD   6
 
#define NR_ROWS   (1 << NR_ROWS_LOG)
 
#define NR_SLOTS   ((1 << (APX_NR_ELMS_LOG - NR_ROWS_LOG)) * OVERHEAD)
 
#define SLOT_LEN   32
 
#define HT_SIZE   (NR_ROWS * NR_SLOTS * SLOT_LEN)
 
#define FABCOIN_NONCE_LEN   32
 
#define FABCOIN_HASH_LEN   512/PARAM_N*((PARAM_N+7)/8)
 
#define BLAKE_WPS   10
 
#define MAX_SOLS   10
 
#define BITS_PER_ROW   8
 
#define ROWS_PER_UINT   4
 
#define ROW_MASK   0xFF
 
#define xi_offset_for_round(round)   (8 + ((round) / 2) * 4)
 
#define SOL_SIZE   ((1 << PARAM_K) * 4)
 

Typedefs

typedef struct sols_s sols_t
 

Macro Definition Documentation

#define APX_NR_ELMS_LOG   (PREFIX + 1)

Definition at line 8 of file param.h.

#define BITS_PER_ROW   8

Definition at line 71 of file param.h.

#define BLAKE_WPS   10

Definition at line 62 of file param.h.

#define COLL_DATA_SIZE_PER_TH   (NR_SLOTS * 5)

Definition at line 16 of file param.h.

#define FABCOIN_HASH_LEN   512/PARAM_N*((PARAM_N+7)/8)

Definition at line 57 of file param.h.

#define FABCOIN_NONCE_LEN   32

Definition at line 55 of file param.h.

#define HT_SIZE   (NR_ROWS * NR_SLOTS * SLOT_LEN)

Definition at line 53 of file param.h.

#define MAX_SOLS   10

Definition at line 64 of file param.h.

#define NR_INPUTS   (1 << PREFIX)

Definition at line 6 of file param.h.

#define NR_ROWS   (1 << NR_ROWS_LOG)

Definition at line 48 of file param.h.

#define NR_ROWS_LOG   20

Definition at line 10 of file param.h.

#define NR_SLOTS   ((1 << (APX_NR_ELMS_LOG - NR_ROWS_LOG)) * OVERHEAD)

Definition at line 49 of file param.h.

#define OPTIM_SIMPLIFY_ROUND   1

Definition at line 13 of file param.h.

#define OVERHEAD   6

Definition at line 43 of file param.h.

#define PARAM_K   9

Definition at line 4 of file param.h.

#define PARAM_N   210

Definition at line 3 of file param.h.

#define PREFIX   (PARAM_N / (PARAM_K + 1))

Definition at line 5 of file param.h.

#define ROW_MASK   0xFF

Definition at line 73 of file param.h.

#define ROWS_PER_UINT   4

Definition at line 72 of file param.h.

#define SLEEP_RECHECK_RATIO   0.60

Definition at line 19 of file param.h.

#define SLEEP_SKIP_RATIO   0.005

Definition at line 22 of file param.h.

#define SLOT_LEN   32

Definition at line 51 of file param.h.

#define SOL_SIZE   ((1 << PARAM_K) * 4)

Definition at line 84 of file param.h.

#define xi_offset_for_round (   round)    (8 + ((round) / 2) * 4)

Definition at line 81 of file param.h.

Typedef Documentation

typedef struct sols_s sols_t