Struct vector_float

Source
#[repr(simd)]
pub struct vector_float([f32; 4]);
🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Available on PowerPC or PowerPC-64 only.
Expand description

PowerPC-specific 128-bit wide vector of four packed f32

Tuple Fields§

§0: [f32; 4]
🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)

Implementations§

Source§

impl vector_float

Source

fn splat(value: f32) -> vector_float

Using my_simd([x; N]) seemingly fails tests, so use this internal helper for it instead.

Source

const fn as_array(&self) -> &[f32; 4]

Returns an array reference containing the entire SIMD vector.

Source

fn as_mut_array(&mut self) -> &mut [f32; 4]

Returns a mutable array reference containing the entire SIMD vector.

Trait Implementations§

Source§

impl Clone for vector_float

Source§

fn clone(&self) -> vector_float

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for vector_float

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<f32x4> for vector_float

Source§

fn from(v: f32x4) -> Self

Converts to this type from the input type.
Source§

impl Neg for vector_float

Source§

type Output = vector_float

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl VectorAbs for vector_float

Source§

unsafe fn vec_abs(self) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAdd<vector_float> for vector_float

Source§

type Result = vector_float

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_add(self, other: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAllEq<vector_float> for vector_float

Source§

type Result = bool

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_all_eq(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAllGe<vector_float> for vector_float

Source§

type Result = bool

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_all_ge(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAllGt<vector_float> for vector_float

Source§

type Result = bool

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_all_gt(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAllNe<vector_float> for vector_float

Source§

type Result = bool

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_all_ne(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAnyEq<vector_float> for vector_float

Source§

type Result = bool

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_any_eq(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAnyGe<vector_float> for vector_float

Source§

type Result = bool

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_any_ge(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAnyGt<vector_float> for vector_float

Source§

type Result = bool

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_any_gt(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorAnyNe<vector_float> for vector_float

Source§

type Result = bool

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_any_ne(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorExtract for vector_float

Source§

type Scalar = f32

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_extract<const IDX: u32>(self) -> Self::Scalar

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorInsert for vector_float

Source§

type Scalar = f32

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_insert<const IDX: u32>(self, s: Self::Scalar) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorMergeEo for vector_float

Source§

unsafe fn vec_mergee(self, b: Self) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_mergeo(self, b: Self) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorMergeh<vector_float> for vector_float

Source§

type Result = vector_float

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_mergeh(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorMergel<vector_float> for vector_float

Source§

type Result = vector_float

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_mergel(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorMul for vector_float

Source§

unsafe fn vec_mul(self, b: Self) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorPerm for vector_float

Source§

unsafe fn vec_vperm(self, b: Self, c: vector_unsigned_char) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorRound for vector_float

Source§

unsafe fn vec_round(self) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSel<vector_bool_int> for vector_float

Source§

unsafe fn vec_sel(self, b: Self, c: vector_bool_int) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSel<vector_unsigned_int> for vector_float

Source§

unsafe fn vec_sel(self, b: Self, c: vector_unsigned_int) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSld for vector_float

Source§

unsafe fn vec_sld<const UIMM4: i32>(self, b: Self) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_sldw<const UIMM2: i32>(self, b: Self) -> Self

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSlo<vector_signed_char> for vector_float

Source§

type Result = vector_float

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_slo(self, b: vector_signed_char) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSlo<vector_unsigned_char> for vector_float

Source§

type Result = vector_float

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_slo(self, b: vector_unsigned_char) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSro<vector_signed_char> for vector_float

Source§

type Result = vector_float

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_sro(self, b: vector_signed_char) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSro<vector_unsigned_char> for vector_float

Source§

type Result = vector_float

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_sro(self, b: vector_unsigned_char) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSt for vector_float

Source§

type Target = *const f32

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_st(self, off: isize, p: Self::Target)

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_stl(self, off: isize, p: Self::Target)

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSte for vector_float

Source§

type Target = *const f32

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_ste(self, off: isize, p: Self::Target)

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorSub<vector_float> for vector_float

Source§

type Result = vector_float

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_sub(self, b: vector_float) -> Self::Result

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorXst for vector_float

Source§

type Out = *mut f32

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_xst(self, a: isize, b: Self::Out)

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl VectorXstores for vector_float

Available on PowerPC-64 only.
Source§

type Out = *mut f32

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

unsafe fn vec_xst_len(self, a: Self::Out, l: usize)

🔬This is a nightly-only experimental API. (stdarch_powerpc #111145)
Source§

impl Copy for vector_float

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SizedTypeProperties for T

Source§

#[doc(hidden)] const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
Source§

#[doc(hidden)] const LAYOUT: Layout = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)] const MAX_SLICE_LEN: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
The largest safe length for a [Self]. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> NonDrop for T
where T: Copy,

Source§

impl<T> Printable for T
where T: Copy + Debug,