#[repr(transparent)]pub struct m256(pub __m256);
Expand description
The data for a 256-bit AVX register of eight f32
lanes.
- This is very similar to having
[f32; 8]
. The main difference is that it’s aligned to 32 instead of just 4, and of course you can perform various intrinsic operations on it.
Tuple Fields§
§0: __m256
Implementations§
source§impl m256
impl m256
sourcepub fn to_array(self) -> [f32; 8]
pub fn to_array(self) -> [f32; 8]
Transmutes the m256
to an array.
Same as m.into()
, just lets you be more explicit about what’s happening.
sourcepub fn from_array(f: [f32; 8]) -> Self
pub fn from_array(f: [f32; 8]) -> Self
Transmutes an array into m256
.
Same as m256::from(arr)
, it just lets you be more explicit about what’s
happening.
sourcepub fn to_bits(self) -> [u32; 8]
pub fn to_bits(self) -> [u32; 8]
Converts into the bit patterns of these floats ([u32;8]
).
Like f32::to_bits
, but all eight lanes at once.
sourcepub fn from_bits(bits: [u32; 8]) -> Self
pub fn from_bits(bits: [u32; 8]) -> Self
Converts from the bit patterns of these floats ([u32;8]
).
Like f32::from_bits
, but all eight lanes at once.
Trait Implementations§
source§impl AddAssign for m256
impl AddAssign for m256
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl BitAndAssign for m256
impl BitAndAssign for m256
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for m256
impl BitOrAssign for m256
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for m256
impl BitXorAssign for m256
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl DivAssign for m256
impl DivAssign for m256
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moresource§impl MulAssign for m256
impl MulAssign for m256
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl PartialEq for m256
impl PartialEq for m256
source§impl SubAssign for m256
impl SubAssign for m256
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moresource§impl TransparentWrapper<__m256> for m256
impl TransparentWrapper<__m256> for m256
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.
impl Copy for m256
impl Pod for m256
Auto Trait Implementations§
impl Freeze for m256
impl RefUnwindSafe for m256
impl Send for m256
impl Sync for m256
impl Unpin for m256
impl UnwindSafe for m256
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,
§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
.