#[repr(simd)]
pub struct f32x8(_, _, _, _, _, _, _, _);
pub const fn new( x0: f32, x1: f32, x2: f32, x3: f32, x4: f32, x5: f32, x6: f32, x7: f32 ) -> f32x8 | [src] |
Create a new instance where every lane has value x
.
Extract the value of the idx
th lane of self
.
extract
will panic if idx
is out of bounds.
Return a new vector where the idx
th lane is replaced
by elem
.
replace
will panic if idx
is out of bounds.
pub fn load(array: &[f32], idx: usize) -> Self | [src] |
Load a new value from the idx
th position of array
.
This is equivalent to the following, but is possibly
more efficient:
Self::new(array[idx], array[idx + 1], ...)
load
will panic if idx
is out of bounds in
array
, or if array[idx..]
is too short.
pub fn store(self, array: &mut [f32], idx: usize) | [src] |
Store the elements of self
to array
, starting at
the idx
th position.
This is equivalent to the following, but is possibly
more efficient:
array[i] = self.extract(0);
array[i + 1] = self.extract(1);
store
will panic if idx
is out of bounds in
array
, or if array[idx...]
is too short.
Convert each lane to a signed integer.
Convert each lane to an unsigned integer.
The corresponding boolean vector type.
type Elem = f32
The element that this vector stores.
Extract the low 128 bit part.
Extract the high 128 bit part.
Compute an approximation to the reciprocal of self
, that is, f32x8::splat(1.0) / self
. Read more
Compute an approximation to the reciprocal of the square root of self
, that is, f32x8::splat(1.0) / self.sqrt()
. Read more
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the -
operator.
Performs the -
operation.
The resulting type after applying the +
operator.
Performs the +
operation.
The resulting type after applying the *
operator.
Performs the *
operation.
The resulting type after applying the /
operator.
Performs the /
operation.
The resulting type after applying the -
operator.
Performs the unary -
operation.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static