[][src]Enum simple_soft_float::BinaryNaNPropagationMode

#[repr(u8)]
pub enum BinaryNaNPropagationMode {
    AlwaysCanonical,
    FirstSecond,
    SecondFirst,
    FirstSecondPreferringSNaN,
    SecondFirstPreferringSNaN,
}

Select how NaN payloads should be propagated

Variants

AlwaysCanonical

NaN payloads are always canonical

FirstSecond

If the first argument is a NaN, then the result uses the first argument's payload, else if the second argument is a NaN, then the result uses the second argument's payload, else the result is the canonical NaN.

SecondFirst

If the second argument is a NaN, then the result uses the second argument's payload, else if the first argument is a NaN, then the result uses the first argument's payload, else the result is the canonical NaN.

FirstSecondPreferringSNaN

If the first argument is a signaling NaN, then the result uses the first argument's payload, else if the second argument is a signaling NaN, then the result uses the second argument's payload, else if the first argument is a NaN, then the result uses the first argument's payload, else if the second argument is a NaN, then the result uses the second argument's payload, else the result is the canonical NaN.

SecondFirstPreferringSNaN

If the second argument is a signaling NaN, then the result uses the second argument's payload, else if the first argument is a signaling NaN, then the result uses the first argument's payload, else if the second argument is a NaN, then the result uses the second argument's payload, else if the first argument is a NaN, then the result uses the first argument's payload, else the result is the canonical NaN.

Methods

impl BinaryNaNPropagationMode[src]

pub fn calculate_propagation_results(
    self,
    first_class: FloatClass,
    second_class: FloatClass
) -> BinaryNaNPropagationResults
[src]

calculate the result of NaN propagation for a floating-point operation

Trait Implementations

impl Clone for BinaryNaNPropagationMode[src]

impl Copy for BinaryNaNPropagationMode[src]

impl Debug for BinaryNaNPropagationMode[src]

impl Eq for BinaryNaNPropagationMode[src]

impl From<BinaryNaNPropagationMode> for UnaryNaNPropagationMode[src]

impl From<TernaryNaNPropagationMode> for BinaryNaNPropagationMode[src]

impl Hash for BinaryNaNPropagationMode[src]

impl PartialEq<BinaryNaNPropagationMode> for BinaryNaNPropagationMode[src]

impl StructuralEq for BinaryNaNPropagationMode[src]

impl StructuralPartialEq for BinaryNaNPropagationMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.