Struct simd::x86::avx::f32x8 [] [src]

pub struct f32x8(_, _, _, _, _, _, _, _);

Methods

impl f32x8
[src]

const fn new(x0: f32, x1: f32, x2: f32, x3: f32, x4: f32, x5: f32, x6: f32, x7: f32) -> f32x8

Create a new instance.

const fn splat(x: f32) -> f32x8

Create a new instance where every lane has value x.

fn eq(self, other: Self) -> bool32fx8

Compare for equality.

fn ne(self, other: Self) -> bool32fx8

Compare for equality.

fn lt(self, other: Self) -> bool32fx8

Compare for equality.

fn le(self, other: Self) -> bool32fx8

Compare for equality.

fn gt(self, other: Self) -> bool32fx8

Compare for equality.

fn ge(self, other: Self) -> bool32fx8

Compare for equality.

fn extract(self, idx: u32) -> f32

Extract the value of the idxth lane of self.

Panics

extract will panic if idx is out of bounds.

fn replace(self, idx: u32, elem: f32) -> Self

Return a new vector where the idxth lane is replaced by elem.

Panics

replace will panic if idx is out of bounds.

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

Load a new value from the idxth position of array.

This is equivalent to the following, but is possibly more efficient:

Self::new(array[idx], array[idx + 1], ...)

Panics

load will panic if idx is out of bounds in array, or if array[idx..] is too short.

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

Store the elements of self to array, starting at the idxth position.

This is equivalent to the following, but is possibly more efficient:

array[i] = self.extract(0);
array[i + 1] = self.extract(1);
// ...

Panics

store will panic if idx is out of bounds in array, or if array[idx...] is too short.

Trait Implementations

impl Simd for f32x8
[src]

type Bool = bool32fx8

The corresponding boolean vector type.

type Elem = f32

The element that this vector stores.

impl Clone for f32x8
[src]

fn clone(&self) -> Self

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl LowHigh128 for f32x8
[src]

type Half = f32x4

fn low(self) -> Self::Half

Extract the low 128 bit part.

fn high(self) -> Self::Half

Extract the high 128 bit part.

impl Add for f32x8
[src]

type Output = Self

The resulting type after applying the + operator

fn add(self, x: Self) -> Self

The method for the + operator

impl Sub for f32x8
[src]

type Output = Self

The resulting type after applying the - operator

fn sub(self, x: Self) -> Self

The method for the - operator

impl Mul for f32x8
[src]

type Output = Self

The resulting type after applying the * operator

fn mul(self, x: Self) -> Self

The method for the * operator

impl Div for f32x8
[src]

type Output = Self

The resulting type after applying the / operator

fn div(self, x: Self) -> Self

The method for the / operator

impl Neg for f32x8
[src]

type Output = Self

The resulting type after applying the - operator

fn neg(self) -> Self

The method for the unary - operator

impl AvxF32x8 for f32x8
[src]

fn sqrt(self) -> Self

fn addsub(self, other: Self) -> Self

fn hadd(self, other: Self) -> Self

fn hsub(self, other: Self) -> Self

fn max(self, other: Self) -> Self

fn min(self, other: Self) -> Self

fn move_mask(self) -> u32

fn approx_reciprocal(self) -> Self

Compute an approximation to the reciprocal of self, that is, f32x8::splat(1.0) / self. Read more

fn approx_rsqrt(self) -> Self

Compute an approximation to the reciprocal of the square root of self, that is, f32x8::splat(1.0) / self.sqrt(). Read more

Derived Implementations

impl Copy for f32x8
[src]

impl Debug for f32x8
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.