31 unsigned int u = chainHash;
33 for (
unsigned int i = 0;
i < log2;
i++) {
38 unsigned int ix = log2;
40 double shift_stage = 1.0 / (1<<(log2+1));
46 chainIndexes.push_back(r);
47 shift += (r-1)*shift_stage;
54 for (
unsigned int i = 0;
i < ix;
i++)
56 chainIndexes.push_back(0);
73 unsigned int u = chainHash;
76 for (
unsigned int i = 0;
i < log2;
i++) {
81 unsigned int ix = log2;
83 double shift_stage = 1.0 / (1<<(log2+1));
91 chainString =
"L" + chainString;
93 chainString =
"C" + chainString;
95 chainString =
"H" + chainString;
98 shift += (r-1)*shift_stage;
105 for (
unsigned int i = 0;
i < ix;
i++)
107 chainString =
"L" + chainString;
108 shift -= shift_stage;
123 unsigned int u = chainHash;
125 for (
unsigned int i = 0;
i < log2;
i++) {
130 unsigned int ix = log2;
132 double shift_stage = 1.0 / (1<<(log2+1));
138 shift += (r-1)*shift_stage;
145 for (
unsigned int i = 0;
i < ix;
i++)
147 shift -= shift_stage;
static double convertToIndexes(unsigned int log2, unsigned int chainHash, std::vector< unsigned int > &chainIndexes)
static double convertToString(unsigned int log2, unsigned int chainHash, QString &chainString)
static double getShiftFactor(unsigned int log2, unsigned int chainHash)