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

Go to the source code of this file.

Macros

#define USE_MOV_REG32_OR_REG64   1
 
#define READ_TABLE_WORD64_COMMON(a, b, c, d)   *(word64 *)(void *)(table+(a*1024)+(b*256)+c+d*8)
 
#define READ_TABLE_WORD64(a, b, c, d, e)   READ_TABLE_WORD64_COMMON((d%2), c, (d?(z##c>>((d?d-1:0)*4))&0xf0:(z##c&0xf)<<4), e)
 
#define GF_MOST_SIG_8BITS(a)   (a##1 >> 7*8)
 
#define GF_SHIFT_8(a)   a##1 = (a##1 << 8) ^ (a##0 >> 7*8); a##0 <<= 8;
 
#define GF_MUL_32BY128(op, a, b, c)
 
#define READ_TABLE_WORD64_COMMON(a, c, d)   *(word64 *)(void *)(table+(a)*256*16+(c)+(d)*8)
 
#define READ_TABLE_WORD64(b, c, d, e)   READ_TABLE_WORD64_COMMON(c*4+d, (d?(z##c>>((d?d:1)*8-4))&0xff0:(z##c&0xff)<<4), e)
 
#define GF_MUL_8BY128(op, b, c, d)
 

Macro Definition Documentation

#define GF_MOST_SIG_8BITS (   a)    (a##1 >> 7*8)
#define GF_MUL_32BY128 (   op,
  a,
  b,
  c 
)
Value:
a0 op READ_TABLE_WORD64(a, b, c, 0, 0) ^ READ_TABLE_WORD64(a, b, c, 1, 0);\
a1 op READ_TABLE_WORD64(a, b, c, 0, 1) ^ READ_TABLE_WORD64(a, b, c, 1, 1);\
b0 op READ_TABLE_WORD64(a, b, c, 2, 0) ^ READ_TABLE_WORD64(a, b, c, 3, 0);\
b1 op READ_TABLE_WORD64(a, b, c, 2, 1) ^ READ_TABLE_WORD64(a, b, c, 3, 1);\
c0 op READ_TABLE_WORD64(a, b, c, 4, 0) ^ READ_TABLE_WORD64(a, b, c, 5, 0);\
c1 op READ_TABLE_WORD64(a, b, c, 4, 1) ^ READ_TABLE_WORD64(a, b, c, 5, 1);\
d0 op READ_TABLE_WORD64(a, b, c, 6, 0) ^ READ_TABLE_WORD64(a, b, c, 7, 0);\
d1 op READ_TABLE_WORD64(a, b, c, 6, 1) ^ READ_TABLE_WORD64(a, b, c, 7, 1);\
#define READ_TABLE_WORD64(a, b, c, d, e)
#define c(i)
#define a(i)
#define a1
#define b(i, j)
#define a0
#define GF_MUL_8BY128 (   op,
  b,
  c,
  d 
)
Value:
#define READ_TABLE_WORD64(a, b, c, d, e)
#define c(i)
#define a1
#define b(i, j)
#define a0
#define d(i)
Definition: sha.cpp:732
#define GF_SHIFT_8 (   a)    a##1 = (a##1 << 8) ^ (a##0 >> 7*8); a##0 <<= 8;
#define READ_TABLE_WORD64 (   a,
  b,
  c,
  d,
  e 
)    READ_TABLE_WORD64_COMMON((d%2), c, (d?(z##c>>((d?d-1:0)*4))&0xf0:(z##c&0xf)<<4), e)
#define READ_TABLE_WORD64 (   b,
  c,
  d,
  e 
)    READ_TABLE_WORD64_COMMON(c*4+d, (d?(z##c>>((d?d:1)*8-4))&0xff0:(z##c&0xff)<<4), e)
#define READ_TABLE_WORD64_COMMON (   a,
  b,
  c,
  d 
)    *(word64 *)(void *)(table+(a*1024)+(b*256)+c+d*8)
#define READ_TABLE_WORD64_COMMON (   a,
  c,
  d 
)    *(word64 *)(void *)(table+(a)*256*16+(c)+(d)*8)
#define USE_MOV_REG32_OR_REG64   1

Definition at line 43 of file gcm.cpp.