#[repr(C, align(16))]pub struct f32x4 { /* private fields */ }
Implementations§
Source§impl f32x4
impl f32x4
pub const ONE: f32x4 = _
pub const ZERO: f32x4 = _
pub const HALF: f32x4 = _
pub const E: f32x4 = _
pub const FRAC_1_PI: f32x4 = _
pub const FRAC_2_PI: f32x4 = _
pub const FRAC_2_SQRT_PI: f32x4 = _
pub const FRAC_1_SQRT_2: f32x4 = _
pub const FRAC_PI_2: f32x4 = _
pub const FRAC_PI_3: f32x4 = _
pub const FRAC_PI_4: f32x4 = _
pub const FRAC_PI_6: f32x4 = _
pub const FRAC_PI_8: f32x4 = _
pub const LN_2: f32x4 = _
pub const LN_10: f32x4 = _
pub const LOG2_E: f32x4 = _
pub const LOG10_E: f32x4 = _
pub const LOG10_2: f32x4 = _
pub const LOG2_10: f32x4 = _
pub const PI: f32x4 = _
pub const SQRT_2: f32x4 = _
pub const TAU: f32x4 = _
Source§impl f32x4
impl f32x4
pub fn new(array: [f32; 4]) -> Self
pub fn blend(self, t: Self, f: Self) -> Self
pub fn abs(self) -> Self
Sourcepub fn fast_max(self, rhs: Self) -> Self
pub fn fast_max(self, rhs: Self) -> Self
Calculates the lanewise maximum of both vectors. This is a faster
implementation than max
, but it doesn’t specify any behavior if NaNs are
involved.
Sourcepub fn max(self, rhs: Self) -> Self
pub fn max(self, rhs: Self) -> Self
Calculates the lanewise maximum of both vectors. If either lane is NaN,
the other lane gets chosen. Use fast_max
for a faster implementation
that doesn’t handle NaNs.
Sourcepub fn fast_min(self, rhs: Self) -> Self
pub fn fast_min(self, rhs: Self) -> Self
Calculates the lanewise minimum of both vectors. This is a faster
implementation than min
, but it doesn’t specify any behavior if NaNs are
involved.
Sourcepub fn min(self, rhs: Self) -> Self
pub fn min(self, rhs: Self) -> Self
Calculates the lanewise minimum of both vectors. If either lane is NaN,
the other lane gets chosen. Use fast_min
for a faster implementation
that doesn’t handle NaNs.
pub fn is_nan(self) -> Self
pub fn is_finite(self) -> Self
pub fn is_inf(self) -> Self
pub fn round(self) -> Self
Sourcepub fn fast_round_int(self) -> i32x4
pub fn fast_round_int(self) -> i32x4
Rounds each lane into an integer. This is a faster implementation than
round_int
, but it doesn’t handle out of range values or NaNs. For those
values you get implementation defined behavior.
Sourcepub fn round_int(self) -> i32x4
pub fn round_int(self) -> i32x4
Rounds each lane into an integer. This saturates out of range values and
turns NaNs into 0. Use fast_round_int
for a faster implementation that
doesn’t handle out of range values or NaNs.
Sourcepub fn fast_trunc_int(self) -> i32x4
pub fn fast_trunc_int(self) -> i32x4
Truncates each lane into an integer. This is a faster implementation than
trunc_int
, but it doesn’t handle out of range values or NaNs. For those
values you get implementation defined behavior.
Sourcepub fn trunc_int(self) -> i32x4
pub fn trunc_int(self) -> i32x4
Truncates each lane into an integer. This saturates out of range values
and turns NaNs into 0. Use fast_trunc_int
for a faster implementation
that doesn’t handle out of range values or NaNs.
pub fn mul_add(self, m: Self, a: Self) -> Self
pub fn mul_sub(self, m: Self, s: Self) -> Self
pub fn mul_neg_add(self, m: Self, a: Self) -> Self
pub fn mul_neg_sub(self, m: Self, a: Self) -> Self
pub fn flip_signs(self, signs: Self) -> Self
pub fn copysign(self, sign: Self) -> Self
pub fn asin_acos(self) -> (Self, Self)
pub fn asin(self) -> Self
pub fn acos(self) -> Self
pub fn atan(self) -> Self
pub fn atan2(self, x: Self) -> Self
pub fn sin_cos(self) -> (Self, Self)
pub fn sin(self) -> Self
pub fn cos(self) -> Self
pub fn tan(self) -> Self
pub fn to_degrees(self) -> Self
pub fn to_radians(self) -> Self
pub fn recip(self) -> Self
pub fn recip_sqrt(self) -> Self
pub fn sqrt(self) -> Self
pub fn move_mask(self) -> i32
pub fn any(self) -> bool
pub fn all(self) -> bool
pub fn none(self) -> bool
pub fn sign_bit(self) -> Self
Sourcepub fn reduce_add(self) -> f32
pub fn reduce_add(self) -> f32
horizontal add of all the elements of the vector
pub fn log2(self) -> Self
pub fn log10(self) -> Self
pub fn pow_f32x4(self, y: f32x4) -> Self
pub fn powf(self, y: f32) -> Self
pub fn to_array(self) -> [f32; 4]
pub fn as_array_ref(&self) -> &[f32; 4]
pub fn as_array_mut(&mut self) -> &mut [f32; 4]
pub fn from_i32x4(v: i32x4) -> Self
Trait Implementations§
Source§impl AddAssign<&f32x4> for f32x4
impl AddAssign<&f32x4> for f32x4
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
+=
operation. Read moreSource§impl AddAssign for f32x4
impl AddAssign for f32x4
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl BitAndAssign<&f32x4> for f32x4
impl BitAndAssign<&f32x4> for f32x4
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
&=
operation. Read moreSource§impl BitAndAssign for f32x4
impl BitAndAssign for f32x4
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOrAssign<&f32x4> for f32x4
impl BitOrAssign<&f32x4> for f32x4
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
|=
operation. Read moreSource§impl BitOrAssign for f32x4
impl BitOrAssign for f32x4
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXorAssign<&f32x4> for f32x4
impl BitXorAssign<&f32x4> for f32x4
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
^=
operation. Read moreSource§impl BitXorAssign for f32x4
impl BitXorAssign for f32x4
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl DivAssign<&f32x4> for f32x4
impl DivAssign<&f32x4> for f32x4
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
/=
operation. Read moreSource§impl DivAssign for f32x4
impl DivAssign for f32x4
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl MulAssign<&f32x4> for f32x4
impl MulAssign<&f32x4> for f32x4
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
*=
operation. Read moreSource§impl MulAssign for f32x4
impl MulAssign for f32x4
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl SubAssign<&f32x4> for f32x4
impl SubAssign<&f32x4> for f32x4
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
-=
operation. Read moreSource§impl SubAssign for f32x4
impl SubAssign for f32x4
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreimpl Copy for f32x4
impl Pod for f32x4
impl StructuralPartialEq for f32x4
Auto Trait Implementations§
impl Freeze for f32x4
impl RefUnwindSafe for f32x4
impl Send for f32x4
impl Sync for f32x4
impl Unpin for f32x4
impl UnwindSafe for f32x4
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
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
bits
as &Self
.