]> git.lizzy.rs Git - rust.git/blob - crates/core_simd/src/vectors_i128.rs
Combine vector definition modules by scalar type
[rust.git] / crates / core_simd / src / vectors_i128.rs
1 define_type! {
2     #[doc = "Vector of two `i128` values"]
3     struct i128x2([i128; 2]);
4 }
5
6 define_type! {
7     #[doc = "Vector of four `i128` values"]
8     struct i128x4([i128; 4]);
9 }
10
11 #[cfg(target_arch = "x86")]
12 from_aligned! { unsafe i128x2 |bidirectional| core::arch::x86::__m256i }
13
14 #[cfg(target_arch = "x86_64")]
15 from_aligned! { unsafe i128x2 |bidirectional| core::arch::x86_64::__m256i }
16
17 /*
18 #[cfg(target_arch = "x86")]
19 from_aligned! { unsafe i128x4 |bidirectional| core::arch::x86::__m512i }
20
21 #[cfg(target_arch = "x86_64")]
22 from_aligned! { unsafe i128x4 |bidirectional| core::arch::x86_64::__m512i }
23 */