Package com.apple.foundationdb.half
Class HalfConstants
java.lang.Object
com.apple.foundationdb.half.HalfConstants
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intBias used in representing ahalfexponent.static final intBit mask to isolate the exponent field of ahalf.static final intThe exponent the smallest positivehalfsubnormal value would have if it could be normalized.static final intBit mask to isolate the sign bit of ahalf.static final intBit mask to isolate the significand field of ahalf.static final intThe number of logical bits in the significand of ahalfnumber, including the implicit bit. -
Method Summary
-
Field Details
-
SIGNIFICAND_WIDTH
public static final int SIGNIFICAND_WIDTHThe number of logical bits in the significand of ahalfnumber, including the implicit bit.- See Also:
-
MIN_SUB_EXPONENT
public static final int MIN_SUB_EXPONENTThe exponent the smallest positivehalfsubnormal value would have if it could be normalized.- See Also:
-
EXP_BIAS
public static final int EXP_BIASBias used in representing ahalfexponent.- See Also:
-
SIGN_BIT_MASK
public static final int SIGN_BIT_MASKBit mask to isolate the sign bit of ahalf.- See Also:
-
EXP_BIT_MASK
public static final int EXP_BIT_MASKBit mask to isolate the exponent field of ahalf.- See Also:
-
SIGNIF_BIT_MASK
public static final int SIGNIF_BIT_MASKBit mask to isolate the significand field of ahalf.- See Also:
-