Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
opcodes.h File Reference

Go to the source code of this file.

Macros

#define SPARC_CR_OPCODE_PRIORITY   300
 
#define F3F(x, y, z)   (((x)<<30)|((y)<<19)|((z)<<5))
 
#define FPD_ENCODE(x)   (((x) >> 5) | ((x) & ~(0x20)))
 
#define RS1(x)   (FPD_ENCODE(x) << 14)
 
#define RS2(x)   (FPD_ENCODE(x) << 0)
 
#define RS3(x)   (FPD_ENCODE(x) << 9)
 
#define RD(x)   (FPD_ENCODE(x) << 25)
 
#define IMM5_0(x)   ((x) << 0)
 
#define IMM5_9(x)   ((x) << 9)
 
#define CRC32C(a, b, c)   .word (F3F(2,0x36,0x147)|RS1(a)|RS2(b)|RD(c));
 
#define MD5   .word 0x81b02800;
 
#define SHA1   .word 0x81b02820;
 
#define SHA256   .word 0x81b02840;
 
#define SHA512   .word 0x81b02860;
 
#define AES_EROUND01(a, b, c, d)   .word (F3F(2, 0x19, 0)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define AES_EROUND23(a, b, c, d)   .word (F3F(2, 0x19, 1)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define AES_DROUND01(a, b, c, d)   .word (F3F(2, 0x19, 2)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define AES_DROUND23(a, b, c, d)   .word (F3F(2, 0x19, 3)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define AES_EROUND01_L(a, b, c, d)   .word (F3F(2, 0x19, 4)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define AES_EROUND23_L(a, b, c, d)   .word (F3F(2, 0x19, 5)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define AES_DROUND01_L(a, b, c, d)   .word (F3F(2, 0x19, 6)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define AES_DROUND23_L(a, b, c, d)   .word (F3F(2, 0x19, 7)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define AES_KEXPAND1(a, b, c, d)   .word (F3F(2, 0x19, 8)|RS1(a)|RS2(b)|IMM5_9(c)|RD(d));
 
#define AES_KEXPAND0(a, b, c)   .word (F3F(2, 0x36, 0x130)|RS1(a)|RS2(b)|RD(c));
 
#define AES_KEXPAND2(a, b, c)   .word (F3F(2, 0x36, 0x131)|RS1(a)|RS2(b)|RD(c));
 
#define DES_IP(a, b)   .word (F3F(2, 0x36, 0x134)|RS1(a)|RD(b));
 
#define DES_IIP(a, b)   .word (F3F(2, 0x36, 0x135)|RS1(a)|RD(b));
 
#define DES_KEXPAND(a, b, c)   .word (F3F(2, 0x36, 0x136)|RS1(a)|IMM5_0(b)|RD(c));
 
#define DES_ROUND(a, b, c, d)   .word (F3F(2, 0x19, 0x009)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define CAMELLIA_F(a, b, c, d)   .word (F3F(2, 0x19, 0x00c)|RS1(a)|RS2(b)|RS3(c)|RD(d));
 
#define CAMELLIA_FL(a, b, c)   .word (F3F(2, 0x36, 0x13c)|RS1(a)|RS2(b)|RD(c));
 
#define CAMELLIA_FLI(a, b, c)   .word (F3F(2, 0x36, 0x13d)|RS1(a)|RS2(b)|RD(c));
 
#define MOVDTOX_F0_O4   .word 0x99b02200
 
#define MOVDTOX_F2_O5   .word 0x9bb02202
 
#define MOVXTOD_G1_F60   .word 0xbbb02301
 
#define MOVXTOD_G1_F62   .word 0xbfb02301
 
#define MOVXTOD_G3_F4   .word 0x89b02303;
 
#define MOVXTOD_G7_F6   .word 0x8db02307;
 
#define MOVXTOD_G3_F0   .word 0x81b02303;
 
#define MOVXTOD_G7_F2   .word 0x85b02307;
 
#define MOVXTOD_O0_F0   .word 0x81b02308;
 
#define MOVXTOD_O5_F0   .word 0x81b0230d;
 
#define MOVXTOD_O5_F2   .word 0x85b0230d;
 
#define MOVXTOD_O5_F4   .word 0x89b0230d;
 
#define MOVXTOD_O5_F6   .word 0x8db0230d;
 
#define MOVXTOD_G3_F60   .word 0xbbb02303;
 
#define MOVXTOD_G7_F62   .word 0xbfb02307;
 

Macro Definition Documentation

#define AES_DROUND01 (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 2)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 33 of file opcodes.h.

#define AES_DROUND01_L (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 6)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 41 of file opcodes.h.

#define AES_DROUND23 (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 3)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 35 of file opcodes.h.

#define AES_DROUND23_L (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 7)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 43 of file opcodes.h.

#define AES_EROUND01 (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 0)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 29 of file opcodes.h.

#define AES_EROUND01_L (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 4)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 37 of file opcodes.h.

#define AES_EROUND23 (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 1)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 31 of file opcodes.h.

#define AES_EROUND23_L (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 5)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 39 of file opcodes.h.

#define AES_KEXPAND0 (   a,
  b,
  c 
)    .word (F3F(2, 0x36, 0x130)|RS1(a)|RS2(b)|RD(c));

Definition at line 47 of file opcodes.h.

#define AES_KEXPAND1 (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 8)|RS1(a)|RS2(b)|IMM5_9(c)|RD(d));

Definition at line 45 of file opcodes.h.

#define AES_KEXPAND2 (   a,
  b,
  c 
)    .word (F3F(2, 0x36, 0x131)|RS1(a)|RS2(b)|RD(c));

Definition at line 49 of file opcodes.h.

#define CAMELLIA_F (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 0x00c)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 61 of file opcodes.h.

#define CAMELLIA_FL (   a,
  b,
  c 
)    .word (F3F(2, 0x36, 0x13c)|RS1(a)|RS2(b)|RD(c));

Definition at line 63 of file opcodes.h.

#define CAMELLIA_FLI (   a,
  b,
  c 
)    .word (F3F(2, 0x36, 0x13d)|RS1(a)|RS2(b)|RD(c));

Definition at line 65 of file opcodes.h.

#define CRC32C (   a,
  b,
  c 
)    .word (F3F(2,0x36,0x147)|RS1(a)|RS2(b)|RD(c));

Definition at line 17 of file opcodes.h.

#define DES_IIP (   a,
  b 
)    .word (F3F(2, 0x36, 0x135)|RS1(a)|RD(b));

Definition at line 54 of file opcodes.h.

#define DES_IP (   a,
  b 
)    .word (F3F(2, 0x36, 0x134)|RS1(a)|RD(b));

Definition at line 52 of file opcodes.h.

#define DES_KEXPAND (   a,
  b,
  c 
)    .word (F3F(2, 0x36, 0x136)|RS1(a)|IMM5_0(b)|RD(c));

Definition at line 56 of file opcodes.h.

#define DES_ROUND (   a,
  b,
  c,
  d 
)    .word (F3F(2, 0x19, 0x009)|RS1(a)|RS2(b)|RS3(c)|RD(d));

Definition at line 58 of file opcodes.h.

#define F3F (   x,
  y,
 
)    (((x)<<30)|((y)<<19)|((z)<<5))

Definition at line 6 of file opcodes.h.

#define FPD_ENCODE (   x)    (((x) >> 5) | ((x) & ~(0x20)))

Definition at line 8 of file opcodes.h.

#define IMM5_0 (   x)    ((x) << 0)

Definition at line 14 of file opcodes.h.

#define IMM5_9 (   x)    ((x) << 9)

Definition at line 15 of file opcodes.h.

#define MD5   .word 0x81b02800;

Definition at line 20 of file opcodes.h.

#define MOVDTOX_F0_O4   .word 0x99b02200

Definition at line 68 of file opcodes.h.

#define MOVDTOX_F2_O5   .word 0x9bb02202

Definition at line 70 of file opcodes.h.

#define MOVXTOD_G1_F60   .word 0xbbb02301

Definition at line 72 of file opcodes.h.

#define MOVXTOD_G1_F62   .word 0xbfb02301

Definition at line 74 of file opcodes.h.

#define MOVXTOD_G3_F0   .word 0x81b02303;

Definition at line 80 of file opcodes.h.

#define MOVXTOD_G3_F4   .word 0x89b02303;

Definition at line 76 of file opcodes.h.

#define MOVXTOD_G3_F60   .word 0xbbb02303;

Definition at line 94 of file opcodes.h.

#define MOVXTOD_G7_F2   .word 0x85b02307;

Definition at line 82 of file opcodes.h.

#define MOVXTOD_G7_F6   .word 0x8db02307;

Definition at line 78 of file opcodes.h.

#define MOVXTOD_G7_F62   .word 0xbfb02307;

Definition at line 96 of file opcodes.h.

#define MOVXTOD_O0_F0   .word 0x81b02308;

Definition at line 84 of file opcodes.h.

#define MOVXTOD_O5_F0   .word 0x81b0230d;

Definition at line 86 of file opcodes.h.

#define MOVXTOD_O5_F2   .word 0x85b0230d;

Definition at line 88 of file opcodes.h.

#define MOVXTOD_O5_F4   .word 0x89b0230d;

Definition at line 90 of file opcodes.h.

#define MOVXTOD_O5_F6   .word 0x8db0230d;

Definition at line 92 of file opcodes.h.

#define RD (   x)    (FPD_ENCODE(x) << 25)

Definition at line 13 of file opcodes.h.

#define RS1 (   x)    (FPD_ENCODE(x) << 14)

Definition at line 10 of file opcodes.h.

#define RS2 (   x)    (FPD_ENCODE(x) << 0)

Definition at line 11 of file opcodes.h.

#define RS3 (   x)    (FPD_ENCODE(x) << 9)

Definition at line 12 of file opcodes.h.

#define SHA1   .word 0x81b02820;

Definition at line 22 of file opcodes.h.

#define SHA256   .word 0x81b02840;

Definition at line 24 of file opcodes.h.

#define SHA512   .word 0x81b02860;

Definition at line 26 of file opcodes.h.

#define SPARC_CR_OPCODE_PRIORITY   300

Definition at line 4 of file opcodes.h.