Class HalfConstants

java.lang.Object
com.apple.foundationdb.half.HalfConstants

public class HalfConstants extends Object
This class contains additional constants documenting limits of Half.

HalfConstants is implemented to provide, as much as possible, the same interface as jdk.internal.math.FloatConsts.

  • Field Details

    • SIGNIFICAND_WIDTH

      public static final int SIGNIFICAND_WIDTH
      The number of logical bits in the significand of a half number, including the implicit bit.
      See Also:
    • MIN_SUB_EXPONENT

      public static final int MIN_SUB_EXPONENT
      The exponent the smallest positive half subnormal value would have if it could be normalized.
      See Also:
    • EXP_BIAS

      public static final int EXP_BIAS
      Bias used in representing a half exponent.
      See Also:
    • SIGN_BIT_MASK

      public static final int SIGN_BIT_MASK
      Bit mask to isolate the sign bit of a half.
      See Also:
    • EXP_BIT_MASK

      public static final int EXP_BIT_MASK
      Bit mask to isolate the exponent field of a half.
      See Also:
    • SIGNIF_BIT_MASK

      public static final int SIGNIF_BIT_MASK
      Bit mask to isolate the significand field of a half.
      See Also: