wide

Struct f32x4

Source
#[repr(C, align(16))]
pub struct f32x4 { /* private fields */ }

Implementations§

Source§

impl f32x4

Source

pub const ONE: f32x4 = _

Source

pub const ZERO: f32x4 = _

Source

pub const HALF: f32x4 = _

Source

pub const E: f32x4 = _

Source

pub const FRAC_1_PI: f32x4 = _

Source

pub const FRAC_2_PI: f32x4 = _

Source

pub const FRAC_2_SQRT_PI: f32x4 = _

Source

pub const FRAC_1_SQRT_2: f32x4 = _

Source

pub const FRAC_PI_2: f32x4 = _

Source

pub const FRAC_PI_3: f32x4 = _

Source

pub const FRAC_PI_4: f32x4 = _

Source

pub const FRAC_PI_6: f32x4 = _

Source

pub const FRAC_PI_8: f32x4 = _

Source

pub const LN_2: f32x4 = _

Source

pub const LN_10: f32x4 = _

Source

pub const LOG2_E: f32x4 = _

Source

pub const LOG10_E: f32x4 = _

Source

pub const LOG10_2: f32x4 = _

Source

pub const LOG2_10: f32x4 = _

Source

pub const PI: f32x4 = _

Source

pub const SQRT_2: f32x4 = _

Source

pub const TAU: f32x4 = _

Source§

impl f32x4

Source

pub fn new(array: [f32; 4]) -> Self

Source

pub fn blend(self, t: Self, f: Self) -> Self

Source

pub fn abs(self) -> Self

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn is_nan(self) -> Self

Source

pub fn is_finite(self) -> Self

Source

pub fn is_inf(self) -> Self

Source

pub fn round(self) -> Self

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn mul_add(self, m: Self, a: Self) -> Self

Source

pub fn mul_sub(self, m: Self, s: Self) -> Self

Source

pub fn mul_neg_add(self, m: Self, a: Self) -> Self

Source

pub fn mul_neg_sub(self, m: Self, a: Self) -> Self

Source

pub fn flip_signs(self, signs: Self) -> Self

Source

pub fn copysign(self, sign: Self) -> Self

Source

pub fn asin_acos(self) -> (Self, Self)

Source

pub fn asin(self) -> Self

Source

pub fn acos(self) -> Self

Source

pub fn atan(self) -> Self

Source

pub fn atan2(self, x: Self) -> Self

Source

pub fn sin_cos(self) -> (Self, Self)

Source

pub fn sin(self) -> Self

Source

pub fn cos(self) -> Self

Source

pub fn tan(self) -> Self

Source

pub fn to_degrees(self) -> Self

Source

pub fn to_radians(self) -> Self

Source

pub fn recip(self) -> Self

Source

pub fn recip_sqrt(self) -> Self

Source

pub fn sqrt(self) -> Self

Source

pub fn move_mask(self) -> i32

Source

pub fn any(self) -> bool

Source

pub fn all(self) -> bool

Source

pub fn none(self) -> bool

Source

pub fn exp(self) -> Self

Calculate the exponent of a packed f32x4

Source

pub fn sign_bit(self) -> Self

Source

pub fn reduce_add(self) -> f32

horizontal add of all the elements of the vector

Source

pub fn ln(self) -> Self

Natural log (ln(x))

Source

pub fn log2(self) -> Self

Source

pub fn log10(self) -> Self

Source

pub fn pow_f32x4(self, y: f32x4) -> Self

Source

pub fn powf(self, y: f32) -> Self

Source

pub fn to_array(self) -> [f32; 4]

Source

pub fn as_array_ref(&self) -> &[f32; 4]

Source

pub fn as_array_mut(&mut self) -> &mut [f32; 4]

Source

pub fn from_i32x4(v: i32x4) -> Self

Source§

impl f32x4

Source

pub fn splat(elem: f32) -> f32x4

Trait Implementations§

Source§

impl Add<&f32x4> for f32x4

Source§

type Output = f32x4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f32> for f32x4

Source§

type Output = f32x4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f32) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f32x4> for f32

Source§

type Output = f32x4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f32x4) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for f32x4

Source§

type Output = f32x4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<&f32x4> for f32x4

Source§

fn add_assign(&mut self, rhs: &Self)

Performs the += operation. Read more
Source§

impl AddAssign for f32x4

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl Binary for f32x4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl BitAnd<&f32x4> for f32x4

Source§

type Output = f32x4

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for f32x4

Source§

type Output = f32x4

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign<&f32x4> for f32x4

Source§

fn bitand_assign(&mut self, rhs: &Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for f32x4

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitOr<&f32x4> for f32x4

Source§

type Output = f32x4

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr for f32x4

Source§

type Output = f32x4

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign<&f32x4> for f32x4

Source§

fn bitor_assign(&mut self, rhs: &Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for f32x4

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitXor<&f32x4> for f32x4

Source§

type Output = f32x4

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for f32x4

Source§

type Output = f32x4

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign<&f32x4> for f32x4

Source§

fn bitxor_assign(&mut self, rhs: &Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for f32x4

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl Clone for f32x4

Source§

fn clone(&self) -> f32x4

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CmpEq<f32> for f32x4

Source§

type Output = f32x4

Source§

fn cmp_eq(self, rhs: f32) -> Self::Output

Source§

impl CmpEq for f32x4

Source§

type Output = f32x4

Source§

fn cmp_eq(self, rhs: Self) -> Self::Output

Source§

impl CmpGe<f32> for f32x4

Source§

type Output = f32x4

Source§

fn cmp_ge(self, rhs: f32) -> Self::Output

Source§

impl CmpGe for f32x4

Source§

type Output = f32x4

Source§

fn cmp_ge(self, rhs: Self) -> Self::Output

Source§

impl CmpGt<f32> for f32x4

Source§

type Output = f32x4

Source§

fn cmp_gt(self, rhs: f32) -> Self::Output

Source§

impl CmpGt for f32x4

Source§

type Output = f32x4

Source§

fn cmp_gt(self, rhs: Self) -> Self::Output

Source§

impl CmpLe<f32> for f32x4

Source§

type Output = f32x4

Source§

fn cmp_le(self, rhs: f32) -> Self::Output

Source§

impl CmpLe for f32x4

Source§

type Output = f32x4

Source§

fn cmp_le(self, rhs: Self) -> Self::Output

Source§

impl CmpLt<f32> for f32x4

Source§

type Output = f32x4

Source§

fn cmp_lt(self, rhs: f32) -> Self::Output

Source§

impl CmpLt for f32x4

Source§

type Output = f32x4

Source§

fn cmp_lt(self, rhs: Self) -> Self::Output

Source§

impl CmpNe<f32> for f32x4

Source§

type Output = f32x4

Source§

fn cmp_ne(self, rhs: f32) -> Self::Output

Source§

impl CmpNe for f32x4

Source§

type Output = f32x4

Source§

fn cmp_ne(self, rhs: Self) -> Self::Output

Source§

impl Debug for f32x4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for f32x4

Source§

fn default() -> f32x4

Returns the “default value” for a type. Read more
Source§

impl Display for f32x4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Div<&f32x4> for f32x4

Source§

type Output = f32x4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f32> for f32x4

Source§

type Output = f32x4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f32x4> for f32

Source§

type Output = f32x4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32x4) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for f32x4

Source§

type Output = f32x4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<&f32x4> for f32x4

Source§

fn div_assign(&mut self, rhs: &Self)

Performs the /= operation. Read more
Source§

impl DivAssign for f32x4

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl From<&[f32]> for f32x4

Source§

fn from(src: &[f32]) -> f32x4

Converts to this type from the input type.
Source§

impl From<[f32; 4]> for f32x4

Source§

fn from(arr: [f32; 4]) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for f32x4

Source§

fn from(elem: f32) -> Self

Splats the single value given across all lanes.

Source§

impl From<f32x4> for [f32; 4]

Source§

fn from(simd: f32x4) -> Self

Converts to this type from the input type.
Source§

impl LowerExp for f32x4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl LowerHex for f32x4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Mul<&f32x4> for f32x4

Source§

type Output = f32x4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f32> for f32x4

Source§

type Output = f32x4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f32x4> for f32

Source§

type Output = f32x4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32x4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for f32x4

Source§

type Output = f32x4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign<&f32x4> for f32x4

Source§

fn mul_assign(&mut self, rhs: &Self)

Performs the *= operation. Read more
Source§

impl MulAssign for f32x4

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Neg for &f32x4

Source§

type Output = f32x4

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for f32x4

Source§

type Output = f32x4

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Not for &f32x4

Source§

type Output = f32x4

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for f32x4

Source§

type Output = f32x4

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Octal for f32x4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for f32x4

Source§

fn eq(&self, other: &f32x4) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<RHS> Product<RHS> for f32x4
where f32x4: MulAssign<RHS>,

Source§

fn product<I: Iterator<Item = RHS>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Sub<&f32x4> for f32x4

Source§

type Output = f32x4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f32> for f32x4

Source§

type Output = f32x4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f32) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f32x4> for f32

Source§

type Output = f32x4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f32x4) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for f32x4

Source§

type Output = f32x4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<&f32x4> for f32x4

Source§

fn sub_assign(&mut self, rhs: &Self)

Performs the -= operation. Read more
Source§

impl SubAssign for f32x4

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<RHS> Sum<RHS> for f32x4
where f32x4: AddAssign<RHS>,

Source§

fn sum<I: Iterator<Item = RHS>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl UpperExp for f32x4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl UpperHex for f32x4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Zeroable for f32x4

Source§

fn zeroed() -> Self

Source§

impl Copy for f32x4

Source§

impl Pod for f32x4

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

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

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> NoUninit for T
where T: Pod,