core/portable-simd/crates/core_simd/src/
vendor.rs
1#[allow(unused)]
3macro_rules! from_transmute {
4 { unsafe $a:ty => $b:ty } => {
5 from_transmute!{ @impl $a => $b }
6 from_transmute!{ @impl $b => $a }
7 };
8 { @impl $from:ty => $to:ty } => {
9 impl core::convert::From<$from> for $to {
10 #[inline]
11 fn from(value: $from) -> $to {
12 unsafe { core::mem::transmute(value) }
15 }
16 }
17 };
18}
19
20#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
22mod x86;
23
24#[cfg(target_arch = "wasm32")]
25mod wasm32;
26
27#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "arm",))]
28mod arm;
29
30#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]
31mod powerpc;
32
33#[cfg(target_arch = "loongarch64")]
34mod loongarch64;