diff options
author | Damjan Marion <damarion@cisco.com> | 2020-02-13 13:11:02 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2020-02-14 10:55:54 +0100 |
commit | e84e9d708e0a7571bc24ae2f443462ed8cddbb84 (patch) | |
tree | 352791e595a79fc021bc8f5d70991b1303db17ba /src/vppinfra | |
parent | 3be33f17ecd14a12738a44f9c0e09cb3778b1345 (diff) |
crypto-native: refactor CBC code
Type: refactor
Change-Id: I61e25942de318d03fb3d75689259709d687479bc
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra')
-rw-r--r-- | src/vppinfra/vector_avx512.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vppinfra/vector_avx512.h b/src/vppinfra/vector_avx512.h index 29d96f85ce9..e27c7c041e4 100644 --- a/src/vppinfra/vector_avx512.h +++ b/src/vppinfra/vector_avx512.h @@ -143,6 +143,12 @@ u64x8_permute (u64x8 a, u64x8 b, u64x8 mask) #define u32x16_ternary_logic(a, b, c, d) \ (u32x16) _mm512_ternarylogic_epi32 ((__m512i) a, (__m512i) b, (__m512i) c, d) +#define u8x64_insert_u8x16(a, b, n) \ + (u8x64) _mm512_inserti64x2 ((__m512i) (a), (__m128i) (b), n) + +#define u8x64_extract_u8x16(a, n) \ + (u8x16) _mm512_extracti64x2_epi64 ((__m512i) (a), n) + static_always_inline u8x64 u8x64_xor3 (u8x64 a, u8x64 b, u8x64 c) { |