#[repr(transparent)]pub struct m256d(pub __m256d);
Expand description
The data for a 256-bit AVX register of four f64
values.
- This is very similar to having
[f64; 4]
. 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: __m256d
Implementations§
source§impl m256d
impl m256d
sourcepub fn to_array(self) -> [f64; 4]
pub fn to_array(self) -> [f64; 4]
Transmutes the m256d
to an array.
Same as m.into()
, just lets you be more explicit about what’s happening.
sourcepub fn from_array(f: [f64; 4]) -> Self
pub fn from_array(f: [f64; 4]) -> Self
Transmutes an array into m256d
.
Same as m256d::from(arr)
, it just lets you be more explicit about what’s
happening.
sourcepub fn to_bits(self) -> [u64; 4]
pub fn to_bits(self) -> [u64; 4]
Converts into the bit patterns of these doubles ([u64;4]
).
Like f64::to_bits
, but both lanes at once.
sourcepub fn from_bits(bits: [u64; 4]) -> Self
pub fn from_bits(bits: [u64; 4]) -> Self
Converts from the bit patterns of these doubles ([u64;4]
).
Like f64::from_bits
, but both lanes at once.
Trait Implementations§
source§impl AddAssign for m256d
impl AddAssign for m256d
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl BitAndAssign for m256d
impl BitAndAssign for m256d
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for m256d
impl BitOrAssign for m256d
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for m256d
impl BitXorAssign for m256d
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl DivAssign for m256d
impl DivAssign for m256d
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moresource§impl MulAssign for m256d
impl MulAssign for m256d
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl PartialEq for m256d
impl PartialEq for m256d
source§impl SubAssign for m256d
impl SubAssign for m256d
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moresource§impl TransparentWrapper<__m256d> for m256d
impl TransparentWrapper<__m256d> for m256d
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 m256d
impl Pod for m256d
Auto Trait Implementations§
impl Freeze for m256d
impl RefUnwindSafe for m256d
impl Send for m256d
impl Sync for m256d
impl Unpin for m256d
impl UnwindSafe for m256d
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
.