summaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_native
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-02-10 15:23:15 +0100
committerFlorin Coras <florin.coras@gmail.com>2022-02-10 15:45:00 +0000
commite01ce5ad5d93c2239d0885d4b9486ba10447a529 (patch)
tree12c62f7370dd5270eb0f10026645436138a43143 /src/plugins/crypto_native
parentf8c8809d009ea6e3785e4b66047d2b4982d6286e (diff)
vppinfra:remove uXxY_is_greater
not needed, '>' works... Type: improvement Change-Id: I9bfbac787e8dca24e9b1bceda0922740eed26346 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/crypto_native')
-rw-r--r--src/plugins/crypto_native/aes.h4
1 files changed, 2 insertions, 2 deletions
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