Struct simd::f32x4 [] [src]

#[repr(simd)]
pub struct f32x4(_, _, _, _);

A SIMD vector of 4 f32s.

Methods

impl f32x4
[src]

[src]

Create a new instance.

[src]

Create a new instance where every lane has value x.

[src]

Compare for equality.

[src]

Compare for equality.

[src]

Compare for equality.

[src]

Compare for equality.

[src]

Compare for equality.

[src]

Compare for equality.

[src]

Extract the value of the idxth lane of self.

Panics

extract will panic if idx is out of bounds.

[src]

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

Panics

replace will panic if idx is out of bounds.

[src]

Load a new value from the idxth position of array.

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

This example is not tested
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.

[src]

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

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

This example is not tested
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.

impl f32x4
[src]

[src]

Compute the square root of each lane.

[src]

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

The accuracy of this approximation is platform dependent.

[src]

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

The accuracy of this approximation is platform dependent.

[src]

Compute the lane-wise maximum of self and other.

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

This example is not tested
f32x4::new(self.extract(0).max(other.extract(0)),
           self.extract(1).max(other.extract(1)),
           ...)

[src]

Compute the lane-wise minimum of self and other.

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

This example is not tested
f32x4::new(self.extract(0).min(other.extract(0)),
           self.extract(1).min(other.extract(1)),
           ...)

[src]

Convert each lane to a signed integer.

[src]

Convert each lane to an unsigned integer.

Trait Implementations

impl Neg for f32x4
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl Add for f32x4
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub for f32x4
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul for f32x4
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div for f32x4
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Sse2F32x4 for f32x4
[src]

[src]

[src]

impl Sse3F32x4 for f32x4
[src]

[src]

[src]

[src]

impl Sse41F32x4 for f32x4
[src]

impl AvxF32x4 for f32x4
[src]

[src]

impl Aarch64F32x4 for f32x4
[src]

[src]

impl Debug for f32x4
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for f32x4
[src]

impl Simd for f32x4
[src]

The corresponding boolean vector type.

The element that this vector stores.

impl Clone for f32x4
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for f32x4

impl Sync for f32x4