#include "pch.h"
#include "config.h"
#include "gcm.h"
#include "cpu.h"
Go to the source code of this file.
|
#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) |
|
#define GF_MOST_SIG_8BITS |
( |
|
a | ) |
(a##1 >> 7*8) |
#define GF_MUL_32BY128 |
( |
|
op, |
|
|
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| |
Value:#define READ_TABLE_WORD64(a, b, c, d, e)
#define GF_MUL_8BY128 |
( |
|
op, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| |
Value:#define READ_TABLE_WORD64(a, b, c, d, e)
#define GF_SHIFT_8 |
( |
|
a | ) |
a##1 = (a##1 << 8) ^ (a##0 >> 7*8); a##0 <<= 8; |
#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 |