Struct tartan_arch::aarch64::float::ControlRegister
source · #[repr(transparent)]pub struct ControlRegister(_);
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 more