[][src]Struct ultraviolet::f32x4

#[repr(C)]
pub struct f32x4 { /* fields omitted */ }

Methods

impl f32x4[src]

pub fn new(a: f32, b: f32, c: f32, d: f32) -> f32x4[src]

pub fn merge(mask: f32x4, tru: f32x4, fal: f32x4) -> f32x4[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 move_mask(self) -> i32[src]

use wide::f32x4;
let a = f32x4::new(1.0, 2.0, 3.0, 4.0);
let b = f32x4::from(2.5);
assert_eq!(a.cmp_lt(b).move_mask(), 0b1100);

pub fn cmp_eq(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_ge(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_gt(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_le(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_lt(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_nan(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_ne(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_nge(self, rhs: f32x4) -> f32x4[src]

If you call this method it sets off Third Impact

pub fn cmp_ngt(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_nle(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_nlt(self, rhs: f32x4) -> f32x4[src]

pub fn cmp_not_nan(self, rhs: f32x4) -> f32x4[src]

pub fn ceil(self) -> f32x4[src]

pub fn floor(self) -> f32x4[src]

pub fn abs(self) -> f32x4[src]

pub fn cos(self) -> f32x4[src]

pub fn exp2(self) -> f32x4[src]

pub fn exp(self) -> f32x4[src]

pub fn log10(self) -> f32x4[src]

pub fn log2(self) -> f32x4[src]

pub fn round(self) -> f32x4[src]

pub fn sin(self) -> f32x4[src]

pub fn sqrt(self) -> f32x4[src]

pub fn trunc(self) -> f32x4[src]

pub fn copysign(self, b: f32x4) -> f32x4[src]

pub fn ln(self) -> f32x4[src]

pub fn powf(self, b: f32x4) -> f32x4[src]

pub fn powi(self, b: [i32; 4]) -> f32x4[src]

pub fn mul_add(self, b: f32x4, c: f32x4) -> f32x4[src]

pub fn recip(self) -> f32x4[src]

impl f32x4[src]

pub fn classify(self) -> [FpCategory; 4][src]

pub fn to_degrees(self) -> f32x4[src]

pub fn to_radians(self) -> f32x4[src]

pub fn max(self, b: f32x4) -> f32x4[src]

pub fn min(self, b: f32x4) -> f32x4[src]

pub fn fract(self) -> f32x4[src]

pub fn acos(self) -> f32x4[src]

pub fn acosh(self) -> f32x4[src]

pub fn asin(self) -> f32x4[src]

pub fn asinh(self) -> f32x4[src]

pub fn atan(self) -> f32x4[src]

pub fn atanh(self) -> f32x4[src]

pub fn cbrt(self) -> f32x4[src]

pub fn cosh(self) -> f32x4[src]

pub fn exp_m1(self) -> f32x4[src]

pub fn ln_1p(self) -> f32x4[src]

pub fn log(self, b: f32x4) -> f32x4[src]

pub fn signum(self) -> f32x4[src]

pub fn sinh(self) -> f32x4[src]

pub fn tan(self) -> f32x4[src]

pub fn tanh(self) -> f32x4[src]

pub fn atan2(self, b: f32x4) -> f32x4[src]

pub fn hypot(self, b: f32x4) -> f32x4[src]

pub fn sin_cos(self) -> (f32x4, f32x4)[src]

Trait Implementations

impl<'_> RemAssign<&'_ f32x4> for f32x4[src]

impl RemAssign<f32x4> for f32x4[src]

impl<'_> DivAssign<&'_ f32x4> for f32x4[src]

impl DivAssign<f32x4> for f32x4[src]

impl BitXor<f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the ^ operator.

impl<'_> BitXor<&'_ f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the ^ operator.

impl<'_> Rem<&'_ f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the % operator.

impl Rem<f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the % operator.

impl Product<f32x4> for f32x4[src]

impl<'a> Product<&'a f32x4> for f32x4[src]

impl Div<f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the / operator.

impl<'_> Div<&'_ f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the / operator.

impl Mul<f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the * operator.

impl<'_> Mul<&'_ f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the * operator.

impl Default for f32x4[src]

impl<'_> AddAssign<&'_ f32x4> for f32x4[src]

impl AddAssign<f32x4> for f32x4[src]

impl Octal for f32x4[src]

impl UpperHex for f32x4[src]

impl<'_> BitXorAssign<&'_ f32x4> for f32x4[src]

impl BitXorAssign<f32x4> for f32x4[src]

impl<'_> Neg for &'_ f32x4[src]

type Output = f32x4

The resulting type after applying the - operator.

impl Neg for f32x4[src]

type Output = f32x4

The resulting type after applying the - operator.

impl Binary for f32x4[src]

impl<'_> BitAndAssign<&'_ f32x4> for f32x4[src]

impl BitAndAssign<f32x4> for f32x4[src]

impl Zeroable for f32x4[src]

impl AsRef<[f32; 4]> for f32x4[src]

impl<'_> MulAssign<&'_ f32x4> for f32x4[src]

impl MulAssign<f32x4> for f32x4[src]

impl Add<f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the + operator.

impl<'_> Add<&'_ f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the + operator.

impl Sub<f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the - operator.

impl<'_> Sub<&'_ f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the - operator.

impl BitAnd<f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the & operator.

impl<'_> BitAnd<&'_ f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the & operator.

impl BitOr<f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the | operator.

impl<'_> BitOr<&'_ f32x4> for f32x4[src]

type Output = f32x4

The resulting type after applying the | operator.

impl IndexMut<usize> for f32x4[src]

impl Sum<f32x4> for f32x4[src]

impl<'a> Sum<&'a f32x4> for f32x4[src]

impl From<[i16; 4]> for f32x4[src]

impl From<[u8; 4]> for f32x4[src]

impl From<(f32, f32, f32, f32)> for f32x4[src]

impl From<[i8; 4]> for f32x4[src]

impl From<[u16; 4]> for f32x4[src]

impl From<f32> for f32x4[src]

impl From<[f32; 4]> for f32x4[src]

impl Pod for f32x4[src]

impl Clone for f32x4[src]

impl Copy for f32x4[src]

impl UpperExp for f32x4[src]

impl<'_> BitOrAssign<&'_ f32x4> for f32x4[src]

impl BitOrAssign<f32x4> for f32x4[src]

impl Display for f32x4[src]

impl AsMut<[f32; 4]> for f32x4[src]

impl Index<usize> for f32x4[src]

type Output = f32

The returned type after indexing.

impl Debug for f32x4[src]

impl LowerExp for f32x4[src]

impl<'_> SubAssign<&'_ f32x4> for f32x4[src]

impl SubAssign<f32x4> for f32x4[src]

impl LowerHex for f32x4[src]

impl Lerp<f32x4> for Wec2[src]

impl Lerp<f32x4> for Wec3[src]

impl Lerp<f32x4> for Wec4[src]

impl Lerp<f32x4> for WBivec2[src]

impl Lerp<f32x4> for WBivec3[src]

impl Lerp<f32x4> for WRotor2[src]

impl Lerp<f32x4> for WRotor3[src]

impl Div<f32x4> for WBivec2[src]

type Output = WBivec2

The resulting type after applying the / operator.

impl Div<f32x4> for WBivec3[src]

type Output = WBivec3

The resulting type after applying the / operator.

impl Div<f32x4> for Wec2[src]

type Output = Wec2

The resulting type after applying the / operator.

impl Div<f32x4> for Wec3[src]

type Output = Wec3

The resulting type after applying the / operator.

impl Div<f32x4> for Wec4[src]

type Output = Wec4

The resulting type after applying the / operator.

impl Mul<WBivec2> for f32x4[src]

type Output = WBivec2

The resulting type after applying the * operator.

impl Mul<f32x4> for WBivec2[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<WBivec3> for f32x4[src]

type Output = WBivec3

The resulting type after applying the * operator.

impl Mul<f32x4> for WBivec3[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<f32x4> for WRotor2[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<WRotor2> for f32x4[src]

type Output = WRotor2

The resulting type after applying the * operator.

impl Mul<f32x4> for WRotor3[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<WRotor3> for f32x4[src]

type Output = WRotor3

The resulting type after applying the * operator.

impl Mul<Wec2> for f32x4[src]

type Output = Wec2

The resulting type after applying the * operator.

impl Mul<f32x4> for Wec2[src]

type Output = Wec2

The resulting type after applying the * operator.

impl Mul<Wec3> for f32x4[src]

type Output = Wec3

The resulting type after applying the * operator.

impl Mul<f32x4> for Wec3[src]

type Output = Wec3

The resulting type after applying the * operator.

impl Mul<Wec4> for f32x4[src]

type Output = Wec4

The resulting type after applying the * operator.

impl Mul<f32x4> for Wec4[src]

type Output = Wec4

The resulting type after applying the * operator.

impl MulAssign<f32x4> for WBivec2[src]

impl MulAssign<f32x4> for WBivec3[src]

impl MulAssign<f32x4> for WRotor2[src]

impl MulAssign<f32x4> for WRotor3[src]

impl MulAssign<f32x4> for Wec2[src]

impl MulAssign<f32x4> for Wec3[src]

impl MulAssign<f32x4> for Wec4[src]

impl DivAssign<f32x4> for WBivec2[src]

impl DivAssign<f32x4> for WBivec3[src]

impl DivAssign<f32x4> for Wec2[src]

impl DivAssign<f32x4> for Wec3[src]

impl DivAssign<f32x4> for Wec4[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]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]