summaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_native
diff options
context:
space:
mode:
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