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

Go to the source code of this file.

Macros

#define mu(a0, a1, a2)
 
#define pi_gamma_pi(a0, a1, a2)
 
#define theta(a0, a1, a2)
 
#define rho(a0, a1, a2)
 

Macro Definition Documentation

#define mu (   a0,
  a1,
  a2 
)
Value:
{ \
a1 = reverseBits(a1); \
word32 t = reverseBits(a0); \
a0 = reverseBits(a2); \
a2 = t; \
}
#define a1
#define a0
#define a2
unsigned int word32
Definition: config.h:231

Definition at line 31 of file 3way.cpp.

#define pi_gamma_pi (   a0,
  a1,
  a2 
)
Value:
{ \
word32 b0, b2; \
b2 = rotlFixed(a2, 1U); \
b0 = rotlFixed(a0, 22U); \
a0 = rotlFixed(b0 ^ (a1|(~b2)), 1U); \
a2 = rotlFixed(b2 ^ (b0|(~a1)), 22U);\
a1 ^= (b2|(~b0)); \
}
T rotlFixed(T x, unsigned int y)
Performs a left rotate.
Definition: misc.h:1263
#define a1
#define a0
#define a2
unsigned int word32
Definition: config.h:231

Definition at line 39 of file 3way.cpp.

#define rho (   a0,
  a1,
  a2 
)
Value:
{ \
}
#define pi_gamma_pi(a0, a1, a2)
Definition: 3way.cpp:39
#define theta(a0, a1, a2)
Definition: 3way.cpp:50
#define a1
#define a0
#define a2

Definition at line 62 of file 3way.cpp.

#define theta (   a0,
  a1,
  a2 
)
Value:
{ \
word32 b0, b1, c; \
c = a0 ^ a1 ^ a2; \
c = rotlFixed(c, 16U) ^ rotlFixed(c, 8U); \
b0 = (a0 << 24) ^ (a2 >> 8) ^ (a1 << 8) ^ (a0 >> 24); \
b1 = (a1 << 24) ^ (a0 >> 8) ^ (a2 << 8) ^ (a1 >> 24); \
a0 ^= c ^ b0; \
a1 ^= c ^ b1; \
a2 ^= c ^ (b0 >> 16) ^ (b1 << 16); \
}
T rotlFixed(T x, unsigned int y)
Performs a left rotate.
Definition: misc.h:1263
#define c(i)
#define a1
#define a0
#define a2
unsigned int word32
Definition: config.h:231

Definition at line 50 of file 3way.cpp.