[−][src]Struct wide::f32x4
Methods
impl f32x4
[src]
pub fn new(a: f32, b: f32, c: f32, d: f32) -> Self
[src]
pub fn merge(mask: Self, tru: Self, fal: Self) -> Self
[src]
Use the mask to bitwise merge two values.
It is expected that the mask will be a "boolish" value where each lane is either all 1s or all 0s, but that's not actually required.
The output will have the tru
bit any place that mask
has a 1, and use
the fal
bit anywhere the mask has a 0.
use wide::f32x4; let a = f32x4::new(1.0, 2.0, 3.0, 4.0); let b = f32x4::from(2.5); let mask = a.cmp_gt(b); let merged = f32x4::merge(mask, f32x4::from(10.0), f32x4::from(2.0)); let merged_arr: [f32; 4] = unsafe { core::mem::transmute(merged) }; assert_eq!(merged_arr, [2.0, 2.0, 10.0, 10.0]);
impl f32x4
[src]
pub fn cmp_eq(self, rhs: Self) -> Self
[src]
pub fn cmp_ge(self, rhs: Self) -> Self
[src]
pub fn cmp_gt(self, rhs: Self) -> Self
[src]
pub fn cmp_le(self, rhs: Self) -> Self
[src]
pub fn cmp_lt(self, rhs: Self) -> Self
[src]
pub fn cmp_nan(self, rhs: Self) -> Self
[src]
pub fn cmp_ne(self, rhs: Self) -> Self
[src]
pub fn cmp_nge(self, rhs: Self) -> Self
[src]
If you call this method it sets off Third Impact
pub fn cmp_ngt(self, rhs: Self) -> Self
[src]
pub fn cmp_nle(self, rhs: Self) -> Self
[src]
pub fn cmp_nlt(self, rhs: Self) -> Self
[src]
pub fn cmp_not_nan(self, rhs: Self) -> Self
[src]
impl f32x4
[src]
pub fn abs(self) -> Self
[src]
pub fn acos(self) -> Self
[src]
pub fn acosh(self) -> Self
[src]
pub fn asin(self) -> Self
[src]
pub fn asinh(self) -> Self
[src]
pub fn atan(self) -> Self
[src]
pub fn atanh(self) -> Self
[src]
pub fn cbrt(self) -> Self
[src]
pub fn ceil(self) -> Self
[src]
pub fn classify(self) -> [FpCategory; 4]
[src]
pub fn cos(self) -> Self
[src]
pub fn cosh(self) -> Self
[src]
pub fn exp(self) -> Self
[src]
pub fn exp2(self) -> Self
[src]
pub fn exp_m1(self) -> Self
[src]
pub fn floor(self) -> Self
[src]
pub fn fract(self) -> Self
[src]
pub fn ln(self) -> Self
[src]
pub fn ln_1p(self) -> Self
[src]
pub fn log10(self) -> Self
[src]
pub fn log2(self) -> Self
[src]
pub fn recip(self) -> Self
[src]
pub fn round(self) -> Self
[src]
pub fn signum(self) -> Self
[src]
pub fn sin(self) -> Self
[src]
pub fn sinh(self) -> Self
[src]
pub fn sqrt(self) -> Self
[src]
pub fn tan(self) -> Self
[src]
pub fn tanh(self) -> Self
[src]
pub fn to_degrees(self) -> Self
[src]
pub fn to_radians(self) -> Self
[src]
pub fn trunc(self) -> Self
[src]
pub fn atan2(self, b: Self) -> Self
[src]
pub fn copysign(self, b: Self) -> Self
[src]
pub fn hypot(self, b: Self) -> Self
[src]
pub fn log(self, b: Self) -> Self
[src]
pub fn max(self, b: Self) -> Self
[src]
pub fn min(self, b: Self) -> Self
[src]
pub fn powf(self, b: Self) -> Self
[src]
pub fn powi(self, b: [i32; 4]) -> Self
[src]
pub fn mul_add(self, b: Self, c: Self) -> Self
[src]
pub fn sin_cos(self) -> (Self, Self)
[src]
Trait Implementations
impl AsRef<[f32; 4]> for f32x4
[src]
impl AsMut<[f32; 4]> for f32x4
[src]
impl From<f32> for f32x4
[src]
impl From<[f32; 4]> for f32x4
[src]
impl From<(f32, f32, f32, f32)> for f32x4
[src]
impl From<[i8; 4]> for f32x4
[src]
impl From<[u8; 4]> for f32x4
[src]
impl From<[i16; 4]> for f32x4
[src]
impl From<[u16; 4]> for f32x4
[src]
impl Clone for f32x4
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for f32x4
[src]
impl Default for f32x4
[src]
impl LowerExp for f32x4
[src]
impl UpperExp for f32x4
[src]
impl Display for f32x4
[src]
impl Debug for f32x4
[src]
impl Div<f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
impl<'_> Div<&'_ f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: &Self) -> Self
[src]
impl Rem<f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self
[src]
impl<'_> Rem<&'_ f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: &Self) -> Self
[src]
impl Sub<f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl<'_> Sub<&'_ f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: &Self) -> Self
[src]
impl Add<f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl<'_> Add<&'_ f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: &Self) -> Self
[src]
impl Mul<f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl<'_> Mul<&'_ f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: &Self) -> Self
[src]
impl Neg for f32x4
[src]
impl<'_> Neg for &'_ f32x4
[src]
impl AddAssign<f32x4> for f32x4
[src]
fn add_assign(&mut self, rhs: Self)
[src]
impl<'_> AddAssign<&'_ f32x4> for f32x4
[src]
fn add_assign(&mut self, rhs: &Self)
[src]
impl SubAssign<f32x4> for f32x4
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
impl<'_> SubAssign<&'_ f32x4> for f32x4
[src]
fn sub_assign(&mut self, rhs: &Self)
[src]
impl MulAssign<f32x4> for f32x4
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl<'_> MulAssign<&'_ f32x4> for f32x4
[src]
fn mul_assign(&mut self, rhs: &Self)
[src]
impl DivAssign<f32x4> for f32x4
[src]
fn div_assign(&mut self, rhs: Self)
[src]
impl<'_> DivAssign<&'_ f32x4> for f32x4
[src]
fn div_assign(&mut self, rhs: &Self)
[src]
impl RemAssign<f32x4> for f32x4
[src]
fn rem_assign(&mut self, rhs: Self)
[src]
impl<'_> RemAssign<&'_ f32x4> for f32x4
[src]
fn rem_assign(&mut self, rhs: &Self)
[src]
impl BitAnd<f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self
[src]
impl<'_> BitAnd<&'_ f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: &Self) -> Self
[src]
impl BitOr<f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
impl<'_> BitOr<&'_ f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: &Self) -> Self
[src]
impl BitXor<f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self
[src]
impl<'_> BitXor<&'_ f32x4> for f32x4
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: &Self) -> Self
[src]
impl BitAndAssign<f32x4> for f32x4
[src]
fn bitand_assign(&mut self, rhs: Self)
[src]
impl<'_> BitAndAssign<&'_ f32x4> for f32x4
[src]
fn bitand_assign(&mut self, rhs: &Self)
[src]
impl BitOrAssign<f32x4> for f32x4
[src]
fn bitor_assign(&mut self, rhs: Self)
[src]
impl<'_> BitOrAssign<&'_ f32x4> for f32x4
[src]
fn bitor_assign(&mut self, rhs: &Self)
[src]
impl BitXorAssign<f32x4> for f32x4
[src]
fn bitxor_assign(&mut self, rhs: Self)
[src]
impl<'_> BitXorAssign<&'_ f32x4> for f32x4
[src]
fn bitxor_assign(&mut self, rhs: &Self)
[src]
impl Index<usize> for f32x4
[src]
impl IndexMut<usize> for f32x4
[src]
impl Sum<f32x4> for f32x4
[src]
impl<'a> Sum<&'a f32x4> for f32x4
[src]
impl Product<f32x4> for f32x4
[src]
impl<'a> Product<&'a f32x4> for f32x4
[src]
impl Zeroable for f32x4
[src]
impl Pod for f32x4
[src]
Auto Trait Implementations
impl Send for f32x4
impl Sync for f32x4
impl Unpin for f32x4
impl UnwindSafe for f32x4
impl RefUnwindSafe for f32x4
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,