pub enum OptimizationOpt {
DisableAssertions,
DisableFMA,
DisableGathers,
DisableLoopUnroll,
DisableScatters,
DisableZmm,
FastMaskedVload,
FastMath,
ForceAlignedMemory,
ResetFTZDaz,
}
Expand description
ISPC optimization options.
Variants§
DisableAssertions
Remove assertion statements from final code.
DisableFMA
Disable ‘fused multiply-add’ instructions (on targets that support them).
DisableGathers
Disable generation of gather instructions on targets that support them.
DisableLoopUnroll
Disable loop unrolling.
DisableScatters
Disable generation of scatter instructions on targets that support them.
DisableZmm
Disable using ZMM registers in favor of YMM on AVX512 targets.
FastMaskedVload
Enable faster masked vector loads on SSE (may access beyond array end).
FastMath
Perform non-IEEE-compliant optimizations of numeric expressions.
ForceAlignedMemory
Always issue aligned vector load and store instructions.
ResetFTZDaz
Reset FTZ (Flush-to-Zero) and DAZ (Denormals-Are-Zero) flags on ISPC extern function entrance and restore them on return.
Trait Implementations§
Source§impl Display for OptimizationOpt
impl Display for OptimizationOpt
Source§impl Ord for OptimizationOpt
impl Ord for OptimizationOpt
Source§fn cmp(&self, other: &OptimizationOpt) -> Ordering
fn cmp(&self, other: &OptimizationOpt) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OptimizationOpt
impl PartialEq for OptimizationOpt
Source§impl PartialOrd for OptimizationOpt
impl PartialOrd for OptimizationOpt
impl Eq for OptimizationOpt
impl StructuralPartialEq for OptimizationOpt
Auto Trait Implementations§
impl Freeze for OptimizationOpt
impl RefUnwindSafe for OptimizationOpt
impl Send for OptimizationOpt
impl Sync for OptimizationOpt
impl Unpin for OptimizationOpt
impl UnwindSafe for OptimizationOpt
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> 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