aboutsummaryrefslogtreecommitdiff
path: root/vendor/zeroize/src/aarch64.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/zeroize/src/aarch64.rs
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/zeroize/src/aarch64.rs')
-rw-r--r--vendor/zeroize/src/aarch64.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/vendor/zeroize/src/aarch64.rs b/vendor/zeroize/src/aarch64.rs
deleted file mode 100644
index 07744d0..0000000
--- a/vendor/zeroize/src/aarch64.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-//! [`Zeroize`] impls for ARM64 SIMD registers.
-//!
-//! Gated behind the `aarch64` feature: MSRV 1.59
-//! (the overall crate is MSRV 1.60)
-
-use crate::{atomic_fence, volatile_write, Zeroize};
-
-use core::arch::aarch64::*;
-
-macro_rules! impl_zeroize_for_simd_register {
- ($($type:ty),* $(,)?) => {
- $(
- #[cfg_attr(docsrs, doc(cfg(target_arch = "aarch64")))]
- impl Zeroize for $type {
- #[inline]
- fn zeroize(&mut self) {
- volatile_write(self, unsafe { core::mem::zeroed() });
- atomic_fence();
- }
- }
- )+
- };
-}
-
-// TODO(tarcieri): other NEON register types?
-impl_zeroize_for_simd_register! {
- uint8x8_t,
- uint8x16_t,
- uint16x4_t,
- uint16x8_t,
- uint32x2_t,
- uint32x4_t,
- uint64x1_t,
- uint64x2_t,
-}