[−][src]Enum simple_soft_float::ExceptionHandlingMode
Select if the underflow exception should be signaled when the result is exact.
In IEEE 754, when exceptions are set to use the default handlers (they are ignored -- the default for most programming languages), then underflow exceptions are only signalled when the result is not exact.
When exceptions are instead set to trap, then underflow exceptions are signalled even when the result is exact, to allow the exception handler to emulate flush-to-zero FP semantics.
Since simple-soft-float doesn't support trapping exceptions, to simulate
trapping exceptions, use SignalExactUnderflow
as the exception
handling mode and check status_flags
after every operation.
Otherwise, use the default value of IgnoreExactUnderflow
.
Variants
Use the default behavior of ignoring exact underflow.
Signal the UNDERFLOW
exception even if the results are exact.
Trait Implementations
impl Clone for ExceptionHandlingMode
[src]
fn clone(&self) -> ExceptionHandlingMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ExceptionHandlingMode
[src]
impl Debug for ExceptionHandlingMode
[src]
impl Default for ExceptionHandlingMode
[src]
fn default() -> ExceptionHandlingMode
[src]
impl Eq for ExceptionHandlingMode
[src]
impl Hash for ExceptionHandlingMode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ExceptionHandlingMode> for ExceptionHandlingMode
[src]
fn eq(&self, other: &ExceptionHandlingMode) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ExceptionHandlingMode
[src]
impl StructuralPartialEq for ExceptionHandlingMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExceptionHandlingMode
impl Send for ExceptionHandlingMode
impl Sync for ExceptionHandlingMode
impl Unpin for ExceptionHandlingMode
impl UnwindSafe for ExceptionHandlingMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,