clang 20.0.0git
|
Go to the source code of this file.
Macros | |
#define | __DEFAULT_FN_ATTRS128 |
#define | _mm_sm3rnds2_epi32(A, B, C, D) (__m128i) __builtin_ia32_vsm3rnds2((__v4su)A, (__v4su)B, (__v4su)C, (int)D) |
This intrinsic performs two rounds of SM3 operation using initial SM3 state (C, D, G, H) from __A, an initial SM3 states (A, B, E, F) from __B and a pre-computed words from the __C. | |
Functions | |
static __inline__ __m128i __DEFAULT_FN_ATTRS128 | _mm_sm3msg1_epi32 (__m128i __A, __m128i __B, __m128i __C) |
This intrinisc is one of the two SM3 message scheduling intrinsics. | |
static __inline__ __m128i __DEFAULT_FN_ATTRS128 | _mm_sm3msg2_epi32 (__m128i __A, __m128i __B, __m128i __C) |
This intrinisc is one of the two SM3 message scheduling intrinsics. | |
#define __DEFAULT_FN_ATTRS128 |
Definition at line 17 of file sm3intrin.h.
#define _mm_sm3rnds2_epi32 | ( | A, | |
B, | |||
C, | |||
D | |||
) | (__m128i) __builtin_ia32_vsm3rnds2((__v4su)A, (__v4su)B, (__v4su)C, (int)D) |
This intrinsic performs two rounds of SM3 operation using initial SM3 state (C, D, G, H) from __A, an initial SM3 states (A, B, E, F) from __B and a pre-computed words from the __C.
__A with initial SM3 state of (C, D, G, H) assumes input of non-rotated left variables from previous state. The updated SM3 state (A, B, E, F) is written to __A. The imm8 should contain the even round number for the first of the two rounds computed by this instruction. The computation masks the imm8 value by AND’ing it with 0x3E so that only even round numbers from 0 through 62 are used for this operation. The calculated results are stored in dst.
This intrinsic corresponds to the VSM3RNDS2
instruction.
__A | A 128-bit vector of [4 x int]. |
__B | A 128-bit vector of [4 x int]. |
__C | A 128-bit vector of [4 x int]. |
imm8 | A 8-bit constant integer. |
Definition at line 233 of file sm3intrin.h.
|
static |
This intrinisc is one of the two SM3 message scheduling intrinsics.
The intrinsic performs an initial calculation for the next four SM3 message words. The calculated results are stored in dst.
This intrinsic corresponds to the VSM3MSG1
instruction.
__A | A 128-bit vector of [4 x int]. |
__B | A 128-bit vector of [4 x int]. |
__C | A 128-bit vector of [4 x int]. |
Definition at line 72 of file sm3intrin.h.
|
static |
This intrinisc is one of the two SM3 message scheduling intrinsics.
The intrinsic performs the final calculation for the next four SM3 message words. The calculated results are stored in dst.
This intrinsic corresponds to the VSM3MSG2
instruction.
__A | A 128-bit vector of [4 x int]. |
__B | A 128-bit vector of [4 x int]. |
__C | A 128-bit vector of [4 x int]. |
Definition at line 129 of file sm3intrin.h.