#[repr(simd)]pub struct f16x2([f16; 2]);
🔬This is a nightly-only experimental API. (
stdarch_nvptx
#111199)Available on
target_arch="nvptx64"
only.Expand description
PTX-specific 32-bit wide floating point (f16 x 2) vector type
Tuple Fields§
§0: [f16; 2]
🔬This is a nightly-only experimental API. (
stdarch_nvptx
#111199)Implementations§
Source§impl f16x2
impl f16x2
Sourcefn splat(value: f16) -> f16x2
fn splat(value: f16) -> f16x2
Using my_simd([x; N])
seemingly fails tests,
so use this internal helper for it instead.
Sourceconst fn as_array(&self) -> &[f16; 2]
const fn as_array(&self) -> &[f16; 2]
Returns an array reference containing the entire SIMD vector.
Sourcefn as_mut_array(&mut self) -> &mut [f16; 2]
fn as_mut_array(&mut self) -> &mut [f16; 2]
Returns a mutable array reference containing the entire SIMD vector.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for f16x2
impl RefUnwindSafe for f16x2
impl Send for f16x2
impl Sync for f16x2
impl Unpin for f16x2
impl UnsafeUnpin for f16x2
impl UnwindSafe for f16x2
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