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

Go to the source code of this file.

Macros

#define U8a(x)   GETBYTE(x,3)
 
#define U8b(x)   GETBYTE(x,2)
 
#define U8c(x)   GETBYTE(x,1)
 
#define U8d(x)   GETBYTE(x,0)
 
#define f1(l, r, km, kr)
 
#define f2(l, r, km, kr)
 
#define f3(l, r, km, kr)
 
#define F1(l, r, i, j)   f1(l, r, K[i], K[i+j])
 
#define F2(l, r, i, j)   f2(l, r, K[i], K[i+j])
 
#define F3(l, r, i, j)   f3(l, r, K[i], K[i+j])
 
#define x(i)   GETBYTE(X[i/4], 3-i%4)
 
#define z(i)   GETBYTE(Z[i/4], 3-i%4)
 
#define Q(i)
 
#define QBar(i)
 

Typedefs

typedef BlockGetAndPut< word32, BigEndianBlock
 

Macro Definition Documentation

#define f1 (   l,
  r,
  km,
  kr 
)
Value:
t = rotlVariable(km + r, kr); \
l ^= ((S[0][U8a(t)] ^ S[1][U8b(t)]) - \
S[2][U8c(t)]) + S[3][U8d(t)];
T rotlVariable(T x, unsigned int y)
Performs a left rotate.
Definition: misc.h:1307
#define U8a(x)
Definition: cast.cpp:11
#define U8c(x)
Definition: cast.cpp:13
#define U8d(x)
Definition: cast.cpp:14
#define S(a)
Definition: mars.cpp:50
#define U8b(x)
Definition: cast.cpp:12

Definition at line 17 of file cast.cpp.

#define F1 (   l,
  r,
  i,
 
)    f1(l, r, K[i], K[i+j])

Definition at line 30 of file cast.cpp.

#define f2 (   l,
  r,
  km,
  kr 
)
Value:
t = rotlVariable(km ^ r, kr); \
l ^= ((S[0][U8a(t)] - S[1][U8b(t)]) + \
S[2][U8c(t)]) ^ S[3][U8d(t)];
T rotlVariable(T x, unsigned int y)
Performs a left rotate.
Definition: misc.h:1307
#define U8a(x)
Definition: cast.cpp:11
#define U8c(x)
Definition: cast.cpp:13
#define U8d(x)
Definition: cast.cpp:14
#define S(a)
Definition: mars.cpp:50
#define U8b(x)
Definition: cast.cpp:12

Definition at line 21 of file cast.cpp.

#define F2 (   l,
  r,
  i,
 
)    f2(l, r, K[i], K[i+j])

Definition at line 31 of file cast.cpp.

#define f3 (   l,
  r,
  km,
  kr 
)
Value:
t = rotlVariable(km - r, kr); \
l ^= ((S[0][U8a(t)] + S[1][U8b(t)]) ^ \
S[2][U8c(t)]) - S[3][U8d(t)];
T rotlVariable(T x, unsigned int y)
Performs a left rotate.
Definition: misc.h:1307
#define U8a(x)
Definition: cast.cpp:11
#define U8c(x)
Definition: cast.cpp:13
#define U8d(x)
Definition: cast.cpp:14
#define S(a)
Definition: mars.cpp:50
#define U8b(x)
Definition: cast.cpp:12

Definition at line 25 of file cast.cpp.

#define F3 (   l,
  r,
  i,
 
)    f3(l, r, K[i], K[i+j])

Definition at line 32 of file cast.cpp.

#define Q (   i)
Value:
F1(block[2],block[3],8*i+4,-4); \
F2(block[1],block[2],8*i+5,-4); \
F3(block[0],block[1],8*i+6,-4); \
F1(block[3],block[0],8*i+7,-4);
#define F3(l, r, i, j)
Definition: cast.cpp:32
#define F2(l, r, i, j)
Definition: cast.cpp:31
#define F1(l, r, i, j)
Definition: cast.cpp:30

Definition at line 199 of file cast.cpp.

#define QBar (   i)
Value:
F1(block[3],block[0],8*i+7,-4); \
F3(block[0],block[1],8*i+6,-4); \
F2(block[1],block[2],8*i+5,-4); \
F1(block[2],block[3],8*i+4,-4);
#define F3(l, r, i, j)
Definition: cast.cpp:32
#define F2(l, r, i, j)
Definition: cast.cpp:31
#define F1(l, r, i, j)
Definition: cast.cpp:30

Definition at line 205 of file cast.cpp.

#define U8a (   x)    GETBYTE(x,3)

Definition at line 11 of file cast.cpp.

#define U8b (   x)    GETBYTE(x,2)

Definition at line 12 of file cast.cpp.

#define U8c (   x)    GETBYTE(x,1)

Definition at line 13 of file cast.cpp.

#define U8d (   x)    GETBYTE(x,0)

Definition at line 14 of file cast.cpp.

#define x (   i)    GETBYTE(X[i/4], 3-i%4)
#define z (   i)    GETBYTE(Z[i/4], 3-i%4)

Typedef Documentation

Definition at line 34 of file cast.cpp.