From fd06b0068ebaff1662c309729103a7a84ce1d632 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sun, 23 Jun 2024 14:05:52 -0700 Subject: [PATCH] aes_gcm aarch64/x86_64: Don't look at target_feature for `#[cold]`. --- src/aead/aes_gcm.rs | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/aead/aes_gcm.rs b/src/aead/aes_gcm.rs index 8472c93c37..feb4df1e28 100644 --- a/src/aead/aes_gcm.rs +++ b/src/aead/aes_gcm.rs @@ -220,24 +220,14 @@ pub(super) fn seal( #[cfg_attr( any( - all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ), - all( - any(target_arch = "x86", target_arch = "x86_64"), - target_feature = "sse" - ) + target_arch = "aarch64", + target_arch = "arm", + target_arch = "x86", + target_arch = "x86_64" ), inline(never) )] -#[cfg_attr( - any( - all(target_arch = "aarch64", target_feature = "neon"), - all(target_arch = "x86_64", target_feature = "sse") - ), - cold -)] +#[cfg_attr(any(target_arch = "aarch64", target_arch = "x86_64"), cold)] fn seal_strided( Combo { aes_key, gcm_key }: &Combo, aad: Aad<&[u8]>, @@ -425,13 +415,7 @@ pub(super) fn open( ), inline(never) )] -#[cfg_attr( - any( - all(target_arch = "aarch64", target_feature = "neon"), - all(target_arch = "x86_64", target_feature = "sse") - ), - cold -)] +#[cfg_attr(any(target_arch = "aarch64", target_arch = "x86_64"), cold)] fn open_strided( Combo { aes_key, gcm_key }: &Combo, aad: Aad<&[u8]>,