pub struct CacheParams {
pub cache_line_size: usize,
pub alignment: usize,
pub prefetch_distance: usize,
pub tile_size: usize,
}
Expand description
Cache optimization parameters
Fields§
§cache_line_size: usize
L1 cache line size
alignment: usize
Optimal data alignment
prefetch_distance: usize
Prefetch distance
tile_size: usize
Cache-friendly loop tiling size
Implementations§
Trait Implementations§
Source§impl Clone for CacheParams
impl Clone for CacheParams
Source§fn clone(&self) -> CacheParams
fn clone(&self) -> CacheParams
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 Debug for CacheParams
impl Debug for CacheParams
Auto Trait Implementations§
impl Freeze for CacheParams
impl RefUnwindSafe for CacheParams
impl Send for CacheParams
impl Sync for CacheParams
impl Unpin for CacheParams
impl UnwindSafe for CacheParams
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more