]> git.lizzy.rs Git - rust.git/blob - crates/core_simd/src/vectors_f32.rs
Implement additional functions
[rust.git] / crates / core_simd / src / vectors_f32.rs
1 #![allow(non_camel_case_types)]
2
3 /// A SIMD vector of containing `LANES` lanes of `f32`.
4 #[repr(simd)]
5 pub struct SimdF32<const LANES: usize>([f32; LANES]);
6
7 impl_float_vector! { SimdF32, f32, SimdU32 }
8
9 pub type f32x2 = SimdF32<2>;
10 pub type f32x4 = SimdF32<4>;
11 pub type f32x8 = SimdF32<8>;
12 pub type f32x16 = SimdF32<16>;
13
14 from_transmute_x86! { unsafe f32x4 => __m128 }
15 from_transmute_x86! { unsafe f32x8 => __m256 }
16 //from_transmute_x86! { unsafe f32x16 => __m512 }