Fabcoin Core  0.16.2
P2P Digital Currency
Macros
whrlpool.cpp File Reference
#include "pch.h"
#include "config.h"
#include "whrlpool.h"
#include "misc.h"
#include "cpu.h"
Include dependency graph for whrlpool.cpp:

Go to the source code of this file.

Macros

#define R   10
 
#define KSL(op, i, a, b, c, d)
 
#define KSH(op, i, a, b, c, d)
 
#define TSL(op, i, a, b, c, d)
 
#define TSH_OP(op, a, b)
 
#define TSH(op, i, a, b, c, d)
 

Macro Definition Documentation

#define KSH (   op,
  i,
  a,
  b,
  c,
  d 
)
Value:
t = (word32)(k[(i+4)%8]>>32);\
w##a = Whirlpool_C[3*256 + (byte)t] ^ (op ? w##a : rotrFixed(w##a, 32));\
if (op==2) k[a] = w##a;\
t >>= 8;\
w##b = Whirlpool_C[2*256 + (byte)t] ^ (op ? w##b : rotrFixed(w##b, 32));\
if (op==2) k[b] = w##b;\
t >>= 8;\
w##c = Whirlpool_C[1*256 + (byte)t] ^ (op ? w##c : rotrFixed(w##c, 32));\
if (op==2) k[c] = w##c;\
t >>= 8;\
w##d = Whirlpool_C[0*256 + t] ^ (op ? w##d : rotrFixed(w##d, 32));\
if (op==2) k[d] = w##d;\
if(a.IndicesBefore(b, len, lenIndices))
Definition: equihash.cpp:243
#define a(i)
uint8_t byte
Definition: Common.h:10
unsigned int word32
Definition: config.h:231
T rotrFixed(T x, unsigned int y)
Performs a right rotate.
Definition: misc.h:1285
#define KSL (   op,
  i,
  a,
  b,
  c,
  d 
)
Value:
t = (word32)k[i];\
w##a = Whirlpool_C[3*256 + (byte)t] ^ (op ? w##a : 0);\
t >>= 8;\
w##b = Whirlpool_C[2*256 + (byte)t] ^ (op ? w##b : 0);\
t >>= 8;\
w##c = Whirlpool_C[1*256 + (byte)t] ^ (op ? w##c : 0);\
t >>= 8;\
w##d = Whirlpool_C[0*256 + t] ^ (op ? w##d : 0);
#define c(i)
#define a(i)
#define b(i, j)
uint8_t byte
Definition: Common.h:10
#define d(i)
Definition: sha.cpp:732
unsigned int word32
Definition: config.h:231
#define R   10

Definition at line 122 of file whrlpool.cpp.

#define TSH (   op,
  i,
  a,
  b,
  c,
  d 
)
Value:
t = (word32)(s[(i+4)%8]>>32);\
TSH_OP(op, a, 3);\
t >>= 8;\
TSH_OP(op, b, 2);\
t >>= 8;\
TSH_OP(op, c, 1);\
t >>= 8;\
TSH_OP(op, d, 0);\
#define c(i)
#define TSH_OP(op, a, b)
#define a(i)
#define b(i, j)
#define d(i)
Definition: sha.cpp:732
unsigned int word32
Definition: config.h:231
#define TSH_OP (   op,
  a,
  b 
)
Value:
w##a = Whirlpool_C[b*256 + (byte)t] ^ (op ? w##a : rotrFixed(w##a, 32) ^ k[a]);\
if (op==2) s[a] = w##a;\
if (op==3) digest[a] ^= w##a;\
if(a.IndicesBefore(b, len, lenIndices))
Definition: equihash.cpp:243
#define a(i)
#define b(i, j)
uint8_t byte
Definition: Common.h:10
T rotrFixed(T x, unsigned int y)
Performs a right rotate.
Definition: misc.h:1285
#define TSL (   op,
  i,
  a,
  b,
  c,
  d 
)
Value:
t = (word32)s[i];\
w##a = Whirlpool_C[3*256 + (byte)t] ^ (op ? w##a : 0);\
t >>= 8;\
w##b = Whirlpool_C[2*256 + (byte)t] ^ (op ? w##b : 0);\
t >>= 8;\
w##c = Whirlpool_C[1*256 + (byte)t] ^ (op ? w##c : 0);\
t >>= 8;\
w##d = Whirlpool_C[0*256 + t] ^ (op ? w##d : 0);
#define c(i)
#define a(i)
#define b(i, j)
uint8_t byte
Definition: Common.h:10
#define d(i)
Definition: sha.cpp:732
unsigned int word32
Definition: config.h:231