Struct simd::x86::sse2::f64x2
[−]
[src]
pub struct f64x2(_, _);
A SIMD vector of 2 f64
s.
Methods
impl f64x2
[src]
const fn new(x0: f64, x1: f64) -> f64x2
Create a new instance.
const fn splat(x: f64) -> f64x2
Create a new instance where every lane has value x
.
fn eq(self, other: Self) -> bool64fx2
Compare for equality.
fn ne(self, other: Self) -> bool64fx2
Compare for equality.
fn lt(self, other: Self) -> bool64fx2
Compare for equality.
fn le(self, other: Self) -> bool64fx2
Compare for equality.
fn gt(self, other: Self) -> bool64fx2
Compare for equality.
fn ge(self, other: Self) -> bool64fx2
Compare for equality.
fn extract(self, idx: u32) -> f64
fn replace(self, idx: u32, elem: f64) -> Self
Return a new vector where the idx
th lane is replaced
by elem
.
Panics
replace
will panic if idx
is out of bounds.
fn load(array: &[f64], idx: usize) -> Self
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], ...)
Panics
load
will panic if idx
is out of bounds in
array
, or if array[idx..]
is too short.
fn store(self, array: &mut [f64], idx: usize)
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); // ...
Panics
store
will panic if idx
is out of bounds in
array
, or if array[idx...]
is too short.
impl f64x2
[src]
fn to_i64(self) -> i64x2
Convert each lane to a signed integer.
fn to_u64(self) -> u64x2
Convert each lane to an unsigned integer.
fn to_f32(self) -> f32x4
Convert each lane to a 32-bit float.
Trait Implementations
impl Simd for f64x2
[src]
type Bool = bool64fx2
The corresponding boolean vector type.
type Elem = f64
The element that this vector stores.
impl Clone for f64x2
[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 Neg for f64x2
[src]
type Output = Self
The resulting type after applying the -
operator
fn neg(self) -> Self
The method for the unary -
operator
impl Add for f64x2
[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 f64x2
[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 f64x2
[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 f64x2
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, x: Self) -> Self
The method for the /
operator