#[repr(simd)]pub(crate) struct f32x16([f32; 16]);
Tuple Fields§
§0: [f32; 16]
Implementations§
Source§impl f32x16
impl f32x16
pub(crate) const fn new( x0: f32, x1: f32, x2: f32, x3: f32, x4: f32, x5: f32, x6: f32, x7: f32, x8: f32, x9: f32, x10: f32, x11: f32, x12: f32, x13: f32, x14: f32, x15: f32, ) -> Self
pub(crate) const fn from_array(elements: [f32; 16]) -> Self
pub(crate) fn splat(value: f32) -> Self
Sourcepub(crate) fn extract(&self, index: usize) -> f32
pub(crate) fn extract(&self, index: usize) -> f32
Extract the element at position index
.
index
is not a constant so this is not efficient!
Use for testing only.
pub(crate) fn as_array(&self) -> &[f32; 16]
Trait Implementations§
impl Copy for f32x16
Auto Trait Implementations§
impl Freeze for f32x16
impl RefUnwindSafe for f32x16
impl Send for f32x16
impl Sync for f32x16
impl Unpin for f32x16
impl UnsafeUnpin for f32x16
impl UnwindSafe for f32x16
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[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