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

Go to the source code of this file.

Macros

#define t1   (table)
 
#define t2   (table+256)
 
#define t3   (table+256*2)
 
#define t4   (table+256*3)
 
#define round(a, b, c, x, mul)
 
#define pass(a, b, c, mul, X)
 
#define key_schedule(Y, X)
 

Macro Definition Documentation

#define key_schedule (   Y,
  X 
)
Value:
Y[0] = X[0] - (X[7]^W64LIT(0xA5A5A5A5A5A5A5A5)); \
Y[1] = X[1] ^ Y[0]; \
Y[2] = X[2] + Y[1]; \
Y[3] = X[3] - (Y[2] ^ ((~Y[1])<<19)); \
Y[4] = X[4] ^ Y[3]; \
Y[5] = X[5] + Y[4]; \
Y[6] = X[6] - (Y[5] ^ ((~Y[4])>>23)); \
Y[7] = X[7] ^ Y[6]; \
Y[0] += Y[7]; \
Y[1] -= Y[0] ^ ((~Y[7])<<19); \
Y[2] ^= Y[1]; \
Y[3] += Y[2]; \
Y[4] -= Y[3] ^ ((~Y[2])>>23); \
Y[5] ^= Y[4]; \
Y[6] += Y[5]; \
Y[7] -= Y[6] ^ W64LIT(0x0123456789ABCDEF)
#define W64LIT(x)
Definition: config.h:241
#define X(name)
Definition: net.cpp:642
#define pass (   a,
  b,
  c,
  mul,
  X 
)
Value:
{\
int i=0;\
while (true)\
{\
round(a,b,c,X[i+0],mul); \
round(b,c,a,X[i+1],mul); \
if (i==6)\
break;\
round(c,a,b,X[i+2],mul); \
i+=3;\
}}
#define c(i)
if(a.IndicesBefore(b, len, lenIndices))
Definition: equihash.cpp:243
#define a(i)
#define b(i, j)
#define X(name)
Definition: net.cpp:642
#define round(a, b, c, x, mul)
#define round (   a,
  b,
  c,
  x,
  mul 
)
Value:
c ^= x; \
a -= t1[GETBYTE(c,0)] ^ t2[GETBYTE(c,2)] ^ t3[GETBYTE(c,4)] ^ t4[GETBYTE(c,6)]; \
b += t4[GETBYTE(c,1)] ^ t3[GETBYTE(c,3)] ^ t2[GETBYTE(c,5)] ^ t1[GETBYTE(c,7)]; \
b *= mul
#define c(i)
#define a(i)
#define t4
#define x(i)
#define t3
#define GETBYTE(x, y)
Definition: misc.h:610
#define t1
#define b(i, j)
#define t2
#define t1   (table)
#define t2   (table+256)
#define t3   (table+256*2)
#define t4   (table+256*3)