pub struct NeonKernel4x4<T> { /* private fields */ }Expand description
Available only for the aarch64 target.
Implementations§
Source§impl<T> NeonKernel4x4<T>
impl<T> NeonKernel4x4<T>
Sourcepub const unsafe fn new() -> Self
pub const unsafe fn new() -> Self
§Safety
The caller must ensure that the created kernel will only be used in an
environment with neon support.
§Examples
use microgemm::kernels::NeonKernel4x4;
let kernel = if cfg!(target_feature = "neon") {
unsafe { NeonKernel4x4::<f32>::new() }
} else {
panic!("neon target feature is not enabled");
};Trait Implementations§
Source§impl<T: Clone> Clone for NeonKernel4x4<T>
impl<T: Clone> Clone for NeonKernel4x4<T>
Source§fn clone(&self) -> NeonKernel4x4<T>
fn clone(&self) -> NeonKernel4x4<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for NeonKernel4x4<T>
impl<T: Debug> Debug for NeonKernel4x4<T>
impl<T: Copy> Copy for NeonKernel4x4<T>
Auto Trait Implementations§
impl<T> Freeze for NeonKernel4x4<T>
impl<T> RefUnwindSafe for NeonKernel4x4<T>where
T: RefUnwindSafe,
impl<T> Send for NeonKernel4x4<T>where
T: Send,
impl<T> Sync for NeonKernel4x4<T>where
T: Sync,
impl<T> Unpin for NeonKernel4x4<T>where
T: Unpin,
impl<T> UnwindSafe for NeonKernel4x4<T>where
T: UnwindSafe,
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