From a990de90fe41456a23e58bd087d2f107d321f3a1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 19 Jul 2024 16:37:58 +0400 Subject: Deleted vendor folder --- vendor/zeroize/src/x86.rs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 vendor/zeroize/src/x86.rs (limited to 'vendor/zeroize/src/x86.rs') diff --git a/vendor/zeroize/src/x86.rs b/vendor/zeroize/src/x86.rs deleted file mode 100644 index 5e4bfcb..0000000 --- a/vendor/zeroize/src/x86.rs +++ /dev/null @@ -1,26 +0,0 @@ -//! [`Zeroize`] impls for x86 SIMD registers - -use crate::{atomic_fence, volatile_write, Zeroize}; - -#[cfg(target_arch = "x86")] -use core::arch::x86::*; - -#[cfg(target_arch = "x86_64")] -use core::arch::x86_64::*; - -macro_rules! impl_zeroize_for_simd_register { - ($($type:ty),* $(,)?) => { - $( - #[cfg_attr(docsrs, doc(cfg(any(target_arch = "x86", target_arch = "x86_64"))))] - impl Zeroize for $type { - #[inline] - fn zeroize(&mut self) { - volatile_write(self, unsafe { core::mem::zeroed() }); - atomic_fence(); - } - } - )* - }; -} - -impl_zeroize_for_simd_register!(__m128, __m128d, __m128i, __m256, __m256d, __m256i); -- cgit v1.2.3