From e01ce5ad5d93c2239d0885d4b9486ba10447a529 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 10 Feb 2022 15:23:15 +0100 Subject: vppinfra:remove uXxY_is_greater not needed, '>' works... Type: improvement Change-Id: I9bfbac787e8dca24e9b1bceda0922740eed26346 Signed-off-by: Damjan Marion --- src/plugins/crypto_native/aes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/crypto_native/aes.h') diff --git a/src/plugins/crypto_native/aes.h b/src/plugins/crypto_native/aes.h index 0ba4e87af52..e7f840975d4 100644 --- a/src/plugins/crypto_native/aes.h +++ b/src/plugins/crypto_native/aes.h @@ -108,7 +108,7 @@ aes_block_store (u8 * p, u8x16 r) static_always_inline u8x16 aes_byte_mask (u8x16 x, u8 n_bytes) { - return x & u8x16_is_greater (u8x16_splat (n_bytes), byte_mask_scale); + return x & (u8x16_splat (n_bytes) > byte_mask_scale); } static_always_inline u8x16 @@ -132,7 +132,7 @@ aes_store_partial (void *p, u8x16 r, int n_bytes) #ifdef __AVX512F__ _mm_mask_storeu_epi8 (p, (1 << n_bytes) - 1, (__m128i) r); #else - u8x16 mask = u8x16_is_greater (u8x16_splat (n_bytes), byte_mask_scale); + u8x16 mask = u8x16_splat (n_bytes) > byte_mask_scale; _mm_maskmoveu_si128 ((__m128i) r, (__m128i) mask, p); #endif #endif -- cgit 1.2.3-korg