Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/zeroize/src/x86.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / zeroize / src / x86.rs` 26 lines ยท 701 bytes Raw Blame History 1 //! [`Zeroize`] impls for x86 SIMD registers 2 3 use crate::{Zeroize, optimization_barrier, volatile_write}; 4 5 #[cfg(target_arch = "x86")] 6 use core::arch::x86::*; 7 #[cfg(target_arch = "x86_64")] 8 use core::arch::x86_64::*; 9 10 macro_rules! impl_zeroize_for_simd_register { 11 ($($type:ty),* $(,)?) => { 12 $( 13 impl Zeroize for $type { 14 #[inline] 15 fn zeroize(&mut self) { 16 volatile_write(self, unsafe { core::mem::zeroed() }); 17 optimization_barrier(self); 18 } 19 } 20 )* 21 }; 22 } 23 24 impl_zeroize_for_simd_register!( 25 __m128, __m128d, __m128i, __m256, __m256d, __m256i, __m512, __m512d, __m512i 26 );