#[repr(u8)]pub enum BinaryNaNPropagationMode {
AlwaysCanonical = 0,
FirstSecond = 1,
SecondFirst = 2,
FirstSecondPreferringSNaN = 3,
SecondFirstPreferringSNaN = 4,
}
Expand description
Select how NaN payloads should be propagated
Variants§
AlwaysCanonical = 0
NaN payloads are always canonical
FirstSecond = 1
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 = 2
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 = 3
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 = 4
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.
Implementations§
Source§impl BinaryNaNPropagationMode
impl BinaryNaNPropagationMode
Sourcepub fn calculate_propagation_results(
self,
first_class: FloatClass,
second_class: FloatClass,
) -> BinaryNaNPropagationResults
pub fn calculate_propagation_results( self, first_class: FloatClass, second_class: FloatClass, ) -> BinaryNaNPropagationResults
calculate the result of NaN propagation for a floating-point operation
Trait Implementations§
Source§impl Clone for BinaryNaNPropagationMode
impl Clone for BinaryNaNPropagationMode
Source§fn clone(&self) -> BinaryNaNPropagationMode
fn clone(&self) -> BinaryNaNPropagationMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more