Struct tartan_arch::aarch64::float::ControlRegister
source · pub struct ControlRegister(/* private fields */);
Expand description
FPCR
: Influences floating-point instruction execution.
Implementations§
source§impl ControlRegister
impl ControlRegister
sourcepub fn alternative_half_precision_format(&self) -> bool
pub fn alternative_half_precision_format(&self) -> bool
AHP
: Use an alternative format for half-precision floats when converting
to/from other formats. Otherwise, use the IEEE half-precision format.
sourcepub fn default_nan(&self) -> bool
pub fn default_nan(&self) -> bool
DN
: Always use the default encoding for NaN results. Otherwise, use the
encoding from an input operand.
sourcepub fn flush_to_zero(&self) -> bool
pub fn flush_to_zero(&self) -> bool
FZ
: When a result would be denormal, yield zero instead. Otherwise, use the
IEEE 754 behavior.
sourcepub fn rounding_mode(&self) -> RoundingMode
pub fn rounding_mode(&self) -> RoundingMode
RMode
: The IEEE 754 rounding mode in use.
sourcepub fn flush_to_zero_half_precision(&self) -> bool
pub fn flush_to_zero_half_precision(&self) -> bool
FZ16
: Counterpart to flush_to_zero
for
half-precision calculations.
Requires FEAT_FP16
.
sourcepub fn trapped_exceptions(&self) -> Exceptions
pub fn trapped_exceptions(&self) -> Exceptions
For each type of floating-point exception, defines whether the error will be
trapped. If false, the corresponding flag in StatusRegister::exceptions
will be set instead.
sourcepub fn set_alternative_half_precision_format(&mut self, value: bool)
pub fn set_alternative_half_precision_format(&mut self, value: bool)
AHP
: Use an alternative format for half-precision floats when converting
to/from other formats. Otherwise, use the IEEE half-precision format.
sourcepub fn with_alternative_half_precision_format(&mut self, value: bool) -> Self
pub fn with_alternative_half_precision_format(&mut self, value: bool) -> Self
AHP
: Use an alternative format for half-precision floats when converting
to/from other formats. Otherwise, use the IEEE half-precision format.
sourcepub fn set_default_nan(&mut self, value: bool)
pub fn set_default_nan(&mut self, value: bool)
DN
: Always use the default encoding for NaN results. Otherwise, use the
encoding from an input operand.
sourcepub fn with_default_nan(&mut self, value: bool) -> Self
pub fn with_default_nan(&mut self, value: bool) -> Self
DN
: Always use the default encoding for NaN results. Otherwise, use the
encoding from an input operand.
sourcepub fn set_flush_to_zero(&mut self, value: bool)
pub fn set_flush_to_zero(&mut self, value: bool)
FZ
: When a result would be denormal, yield zero instead. Otherwise, use the
IEEE 754 behavior.
sourcepub fn with_flush_to_zero(&mut self, value: bool) -> Self
pub fn with_flush_to_zero(&mut self, value: bool) -> Self
FZ
: When a result would be denormal, yield zero instead. Otherwise, use the
IEEE 754 behavior.
sourcepub fn set_rounding_mode(&mut self, value: RoundingMode)
pub fn set_rounding_mode(&mut self, value: RoundingMode)
RMode
: The IEEE 754 rounding mode in use.
sourcepub fn with_rounding_mode(&self, value: RoundingMode) -> Self
pub fn with_rounding_mode(&self, value: RoundingMode) -> Self
RMode
: The IEEE 754 rounding mode in use.
sourcepub fn set_flush_to_zero_half_precision(&mut self, value: bool)
pub fn set_flush_to_zero_half_precision(&mut self, value: bool)
FZ16
: Counterpart to flush_to_zero
for
half-precision calculations.
Requires FEAT_FP16
.
sourcepub fn with_flush_to_zero_half_precision(&mut self, value: bool) -> Self
pub fn with_flush_to_zero_half_precision(&mut self, value: bool) -> Self
FZ16
: Counterpart to flush_to_zero
for
half-precision calculations.
Requires FEAT_FP16
.
sourcepub fn set_trapped_exceptions(&mut self, value: Exceptions)
pub fn set_trapped_exceptions(&mut self, value: Exceptions)
For each type of floating-point exception, defines whether the error will be
trapped. If false, the corresponding flag in StatusRegister::exceptions
will be set instead.
sourcepub fn with_trapped_exceptions(&self, value: Exceptions) -> Self
pub fn with_trapped_exceptions(&self, value: Exceptions) -> Self
For each type of floating-point exception, defines whether the error will be
trapped. If false, the corresponding flag in StatusRegister::exceptions
will be set instead.
Trait Implementations§
source§impl Bitfield<u64> for ControlRegister
impl Bitfield<u64> for ControlRegister
source§impl Clone for ControlRegister
impl Clone for ControlRegister
source§fn clone(&self) -> ControlRegister
fn clone(&self) -> ControlRegister
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ControlRegister
impl Debug for ControlRegister
source§impl Default for ControlRegister
impl Default for ControlRegister
source§fn default() -> ControlRegister
fn default() -> ControlRegister
source§impl From<ControlRegister> for u64
impl From<ControlRegister> for u64
source§fn from(val: ControlRegister) -> Self
fn from(val: ControlRegister) -> Self
source§impl From<u64> for ControlRegister
impl From<u64> for ControlRegister
source§impl PartialEq for ControlRegister
impl PartialEq for ControlRegister
impl Copy for ControlRegister
impl Eq for ControlRegister
impl StructuralPartialEq for ControlRegister
Auto Trait Implementations§
impl Freeze for ControlRegister
impl RefUnwindSafe for ControlRegister
impl Send for ControlRegister
impl Sync for ControlRegister
impl Unpin for ControlRegister
impl UnwindSafe for ControlRegister
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)