#[repr(transparent)]pub struct m512i(pub __m512i);Expand description
The data for a 512-bit AVX-512 register of integer data.
- The exact layout to view the type as depends on the operation used.
FromandIntoimpls are provided for all the relevant signed integer array types.- Formatting impls print as sixteen
i32values just because they have to pick something. If you want an alternative you can turn it into an array and print as you like.
Tuple Fields§
§0: __m512iImplementations§
Source§impl m512i
impl m512i
Sourcepub fn to_array(self) -> [i32; 16]
pub fn to_array(self) -> [i32; 16]
Transmutes the m512i to an array.
Same as m.into(), just lets you be more explicit about what’s happening.
Sourcepub fn from_array(f: [i32; 16]) -> Self
pub fn from_array(f: [i32; 16]) -> Self
Transmutes an array into m512i.
Same as m512i::from(arr), it just lets you be more explicit about what’s
happening.
Sourcepub fn to_bits(self) -> [i32; 16]
pub fn to_bits(self) -> [i32; 16]
Converts into the bit patterns of these doubles ([u64;8]).
Like f64::to_bits, but all eight lanes at once.
Sourcepub fn from_bits(bits: [i32; 16]) -> Self
pub fn from_bits(bits: [i32; 16]) -> Self
Converts from the bit patterns of these doubles ([u64;8]).
Like f64::from_bits, but all eight lanes at once.
Trait Implementations§
Source§impl TransparentWrapper<__m512i> for m512i
Available on crate feature bytemuck only.
impl TransparentWrapper<__m512i> for m512i
Available on crate feature
bytemuck only.Source§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
Source§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
Source§fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
Convert a slice to the inner type into a slice to the wrapper type.
Source§fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
Convert a mutable slice to the inner type into a mutable slice to the
wrapper type.
Source§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
Source§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
Source§fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
Convert a slice to the wrapped type into a slice to the inner type.
Source§fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
Convert a mutable slice to the wrapped type into a mutable slice to the
inner type.
impl Copy for m512i
impl Pod for m512i
Available on crate feature
bytemuck only.Auto Trait Implementations§
impl Freeze for m512i
impl RefUnwindSafe for m512i
impl Send for m512i
impl Sync for m512i
impl Unpin for m512i
impl UnsafeUnpin for m512i
impl UnwindSafe for m512i
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> TransparentWrapperAlloc<I> for T
impl<I, T> TransparentWrapperAlloc<I> for T
Source§fn wrap_vec(s: Vec<Inner>) -> Vec<Self>where
Self: Sized,
fn wrap_vec(s: Vec<Inner>) -> Vec<Self>where
Self: Sized,
Convert a vec of the inner type into a vec of the wrapper type.
Source§fn wrap_box(s: Box<Inner>) -> Box<Self>
fn wrap_box(s: Box<Inner>) -> Box<Self>
Convert a box to the inner type into a box to the wrapper
type.
Source§fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
Convert an
Rc to the inner type into an Rc to the wrapper type.Source§fn wrap_arc(s: Arc<Inner>) -> Arc<Self>
fn wrap_arc(s: Arc<Inner>) -> Arc<Self>
Convert an
Arc to the inner type into an Arc to the wrapper type.Source§fn peel_vec(s: Vec<Self>) -> Vec<Inner>where
Self: Sized,
fn peel_vec(s: Vec<Self>) -> Vec<Inner>where
Self: Sized,
Convert a vec of the wrapper type into a vec of the inner type.
Source§fn peel_box(s: Box<Self>) -> Box<Inner>
fn peel_box(s: Box<Self>) -> Box<Inner>
Convert a box to the wrapper type into a box to the inner
type.