Skip to main content

float_impl

Macro float_impl 

Source
pub(crate) macro float_impl(
    Self = $SelfT:ty,
    Bits = $BitsT:ty,
    SignedBits = $SignedBitsT:ty,
    // Constants
    BITS = $BITS:literal,
    MANTISSA_DIGITS = $MANTISSA_DIGITS:literal,
    DIGITS = $DIGITS:literal,
    EPSILON = $EPSILON:literal,
    MIN = $MIN:literal,
    MIN_POSITIVE = $MIN_POSITIVE:literal,
    MAX = $MAX:literal,
    MIN_EXP = $MIN_EXP:literal,
    MAX_EXP = $MAX_EXP:literal,
    MIN_10_EXP = $MIN_10_EXP:literal,
    MAX_10_EXP = $MAX_10_EXP:literal,
    SIGN_MASK = $SIGN_MASK:literal,
    EXPONENT_MASK = $EXPONENT_MASK:literal,
    MANTISSA_MASK = $MANTISSA_MASK:literal,
    // Values for docs
    exponent_bias = $exponent_bias:literal,
    // Feature gates
    assoc_int_consts = #[$assoc_int_consts:meta],
    // Things needed for `f16`/`f128` doctests
    $(feature = $feature:ident,)?
    $(has_reliable_cfg = $has_reliable_cfg:ident,)?
    $(has_reliable_math_cfg = $has_reliable_math_cfg:ident,)?
) {
    ...
}