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