]> git.lizzy.rs Git - rust.git/blob - crates/core_simd/src/vectors_u64.rs
Add missing type bounds
[rust.git] / crates / core_simd / src / vectors_u64.rs
1 #![allow(non_camel_case_types)]
2
3 /// A SIMD vector of containing `LANES` `u64` values.
4 #[repr(simd)]
5 pub struct SimdU64<const LANES: usize>([u64; LANES])
6 where
7     Self: crate::LanesAtMost64;
8
9 impl_integer_vector! { SimdU64, u64 }
10
11 /// Vector of two `u64` values
12 pub type u64x2 = SimdU64<2>;
13
14 /// Vector of four `u64` values
15 pub type u64x4 = SimdU64<4>;
16
17 /// Vector of eight `u64` values
18 pub type u64x8 = SimdU64<8>;
19
20 from_transmute_x86! { unsafe u64x2 => __m128i }
21 from_transmute_x86! { unsafe u64x4 => __m256i }
22 //from_transmute_x86! { unsafe u64x8 => __m512i }