]> git.lizzy.rs Git - rust.git/blob - crates/core_simd/src/vectors_f64.rs
Combine vector definition modules by scalar type
[rust.git] / crates / core_simd / src / vectors_f64.rs
1 define_type! {
2     #[doc = "Vector of two `f64` values"]
3     struct f64x2([f64; 2]);
4 }
5
6 define_type! {
7     #[doc = "Vector of four `f64` values"]
8     struct f64x4([f64; 4]);
9 }
10
11 define_type! {
12     #[doc = "Vector of eight `f64` values"]
13     struct f64x8([f64; 8]);
14 }
15
16 #[cfg(target_arch = "x86")]
17 from_aligned! { unsafe f64x2 |bidirectional| core::arch::x86::__m128d }
18
19 #[cfg(target_arch = "x86_64")]
20 from_aligned! { unsafe f64x2 |bidirectional| core::arch::x86_64::__m128d }
21
22 #[cfg(target_arch = "x86")]
23 from_aligned! { unsafe f64x4 |bidirectional| core::arch::x86::__m256d }
24
25 #[cfg(target_arch = "x86_64")]
26 from_aligned! { unsafe f64x4 |bidirectional| core::arch::x86_64::__m256d }
27
28 /*
29 #[cfg(target_arch = "x86")]
30 from_aligned! { unsafe f64x8 |bidirectional| core::arch::x86::__m512d }
31
32 #[cfg(target_arch = "x86_64")]
33 from_aligned! { unsafe f64x8 |bidirectional| core::arch::x86_64::__m512d }
34 */