[][src]Struct simulated_packed_simd::f32x2

#[repr(packed)]pub struct f32x2(_, _);

Methods

impl f32x2[src]

pub fn new(x0: f32, x1: f32) -> Self[src]

Create new instance

pub fn splat(x: f32) -> Self[src]

Create new instance with all lanes set to a value

pub fn extract(self, idx: usize) -> f32[src]

Get the idxth lane value

pub fn replace(self, idx: usize, elem: f32) -> Self[src]

Replace the idxth lane with new value

pub fn load(array: &[f32], idx: usize) -> Self[src]

Load instance from an array

pub fn from_slice_aligned(slice: &[f32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub fn from_slice_unaligned(slice: &[f32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub unsafe fn from_slice_aligned_unchecked(slice: &[f32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub unsafe fn from_slice_unaligned_unchecked(slice: &[f32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub fn store(self, array: &mut [f32], idx: usize)[src]

Store self to an array

pub fn write_to_slice_aligned(self, slice: &mut [f32])[src]

Writes the values of the vector to the slice.

pub fn write_to_slice_unaligned(self, slice: &mut [f32])[src]

Writes the values of the vector to the slice.

pub unsafe fn write_to_slice_aligned_unchecked(self, slice: &mut [f32])[src]

Writes the values of the vector to the slice.

pub unsafe fn write_to_slice_unaligned_unchecked(self, slice: &mut [f32])[src]

Writes the values of the vector to the slice.

pub fn eq(self, rhs: Self) -> bool32x2[src]

Compare if equal

pub fn ne(self, rhs: Self) -> bool32x2[src]

Compare if not equal

pub fn lt(self, rhs: Self) -> bool32x2[src]

Compare if less than

pub fn le(self, rhs: Self) -> bool32x2[src]

Compare if less than or equal

pub fn gt(self, rhs: Self) -> bool32x2[src]

Compare if greater than

pub fn ge(self, rhs: Self) -> bool32x2[src]

Compare if greater than or equal

pub fn max(self, rhs: Self) -> Self[src]

Get max values by lane

pub fn min(self, rhs: Self) -> Self[src]

Get min values by lane

impl f32x2[src]

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

Get square root

pub fn approx_rsqrt(self) -> Self[src]

Get reciprocal of square root

pub fn approx_reciprocal(self) -> Self[src]

Get reciprocal

impl f32x2[src]

pub fn to_i(self) -> i32x2[src]

impl f32x2[src]

pub fn to_u(self) -> u32x2[src]

impl f32x2[src]

pub fn to_f64(self) -> f64x2[src]

Trait Implementations

impl Add<f32x2> for f32x2[src]

Add trait (+) The addittion wraps over if it is over the type limits

type Output = Self

The resulting type after applying the + operator.

impl Clone for f32x2[src]

impl Copy for f32x2[src]

impl Debug for f32x2[src]

impl Div<f32x2> for f32x2[src]

Div trait (/)

type Output = Self

The resulting type after applying the / operator.

impl From<f32x2> for i32x2[src]

fn from(source: f32x2) -> i32x2[src]

Warning ! The conversion can be lossy

impl From<f32x2> for u32x2[src]

fn from(source: f32x2) -> u32x2[src]

Warning ! The conversion can be lossy

impl From<f32x2> for f64x2[src]

fn from(source: f32x2) -> f64x2[src]

Warning ! The conversion can be lossy

impl From<f64x2> for f32x2[src]

fn from(source: f64x2) -> f32x2[src]

Warning ! The conversion can be lossy

impl From<i32x2> for f32x2[src]

fn from(source: i32x2) -> f32x2[src]

Warning ! The conversion can be lossy

impl From<u32x2> for f32x2[src]

fn from(source: u32x2) -> f32x2[src]

Warning ! The conversion can be lossy

impl FromCast<f32x2> for i32x2[src]

impl FromCast<f32x2> for u32x2[src]

impl FromCast<f32x2> for f64x2[src]

impl FromCast<f64x2> for f32x2[src]

impl FromCast<i32x2> for f32x2[src]

impl FromCast<u32x2> for f32x2[src]

impl Mul<f32x2> for f32x2[src]

Mul trait (*)

type Output = Self

The resulting type after applying the * operator.

impl Sub<f32x2> for f32x2[src]

Sub trait (-)

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for f32x2

impl Send for f32x2

impl Sync for f32x2

impl Unpin for f32x2

impl UnwindSafe for f32x2

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.