[][src]Struct simple_soft_float::PlatformProperties

pub struct PlatformProperties {
    pub canonical_nan_sign: Sign,
    pub canonical_nan_mantissa_msb: bool,
    pub canonical_nan_mantissa_second_to_msb: bool,
    pub canonical_nan_mantissa_rest: bool,
    pub std_bin_ops_nan_propagation_mode: BinaryNaNPropagationMode,
    pub fma_nan_propagation_mode: TernaryNaNPropagationMode,
    pub fma_inf_zero_qnan_result: FMAInfZeroQNaNResult,
    pub round_to_integral_nan_propagation_mode: UnaryNaNPropagationMode,
    pub next_up_or_down_nan_propagation_mode: UnaryNaNPropagationMode,
    pub scale_b_nan_propagation_mode: UnaryNaNPropagationMode,
    pub sqrt_nan_propagation_mode: UnaryNaNPropagationMode,
    pub float_to_float_conversion_nan_propagation_mode: FloatToFloatConversionNaNPropagationMode,
    pub rsqrt_nan_propagation_mode: UnaryNaNPropagationMode,
    // some fields omitted
}

properties of a floating-point implementation

Fields

canonical_nan_sign: Sign

sign of the canonical NaN

canonical_nan_mantissa_msb: bool

most-significant-bit of the mantissa of the canonical NaN

canonical_nan_mantissa_second_to_msb: bool

second-most-significant-bit of the mantissa of the canonical NaN

canonical_nan_mantissa_rest: bool

rest of the bits of the mantissa of the canonical NaN

std_bin_ops_nan_propagation_mode: BinaryNaNPropagationMode

NaN payload propagation mode for the standard binary operations

fma_nan_propagation_mode: TernaryNaNPropagationMode

NaN payload propagation mode for fused_mul_add

fma_inf_zero_qnan_result: FMAInfZeroQNaNResult

the result of fused_mul_add for (Infinity * 0.0) + QNaN and (0.0 * Infinity) + QNaN

round_to_integral_nan_propagation_mode: UnaryNaNPropagationMode

NaN payload propagation mode for round_to_integral

next_up_or_down_nan_propagation_mode: UnaryNaNPropagationMode

NaN payload propagation mode for next_up_or_down, next_up, and next_down

scale_b_nan_propagation_mode: UnaryNaNPropagationMode

NaN payload propagation mode for scale_b

sqrt_nan_propagation_mode: UnaryNaNPropagationMode

NaN payload propagation mode for sqrt

float_to_float_conversion_nan_propagation_mode: FloatToFloatConversionNaNPropagationMode

NaN payload propagation mode for float-to-float conversions

rsqrt_nan_propagation_mode: UnaryNaNPropagationMode

NaN payload propagation mode for rsqrt

Methods

impl PlatformProperties[src]

pub const ARM: PlatformProperties[src]

ARM 32-bit platform properties

pub const RISC_V: PlatformProperties[src]

RISC-V platform properties

pub const POWER: PlatformProperties[src]

Power ISA platform properties

pub const MIPS_2008: PlatformProperties[src]

MIPS 2008 revision platform properties

pub const X86_SSE: PlatformProperties[src]

x86 SSE/AVX platform properties

pub const SPARC: PlatformProperties[src]

Sparc platform properties

pub const HPPA: PlatformProperties[src]

HPPA platform properties

pub const MIPS_LEGACY: PlatformProperties[src]

MIPS pre-2008 revision platform properties

impl PlatformProperties[src]

pub const fn new_simple(
    canonical_nan_sign: Sign,
    canonical_nan_mantissa_msb: bool,
    canonical_nan_mantissa_second_to_msb: bool,
    canonical_nan_mantissa_rest: bool,
    unary_nan_propagation_mode: UnaryNaNPropagationMode,
    binary_nan_propagation_mode: BinaryNaNPropagationMode,
    ternary_nan_propagation_mode: TernaryNaNPropagationMode,
    fma_inf_zero_qnan_result: FMAInfZeroQNaNResult,
    float_to_float_conversion_nan_propagation_mode: FloatToFloatConversionNaNPropagationMode
) -> Self
[src]

create PlatformProperties

pub const fn default() -> Self[src]

default PlatformProperties. currently returns RISC_V

pub fn quiet_nan_format(self) -> QuietNaNFormat[src]

get the QuietNaNFormat

Trait Implementations

impl Clone for PlatformProperties[src]

impl Copy for PlatformProperties[src]

impl Debug for PlatformProperties[src]

impl Default for PlatformProperties[src]

impl Eq for PlatformProperties[src]

impl Hash for PlatformProperties[src]

impl PartialEq<PlatformProperties> for PlatformProperties[src]

impl StructuralEq for PlatformProperties[src]

impl StructuralPartialEq for PlatformProperties[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.