Top Description Fields Constructors Methods
com.jogamp.opengl.math

public final Class Binary64

extends Object
Class Inheritance

Functions for interrogating binary64 (double) values.

Field Summary

Modifier and TypeField and Description
pack-priv static final long
pack-priv static final long
pack-priv static final long
pack-priv static final long
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static long
unpackGetExponentUnbiased(final double d)

Extract and unbias the exponent of the given packed double value.

public static long
unpackGetSign(final double d)

Return the sign of the given double value.

public static long
unpackGetSignificand(final double d)

Return the significand of the given double value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BIASback to summary
pack-priv static final long BIAS
MASK_EXPONENTback to summary
pack-priv static final long MASK_EXPONENT
MASK_SIGNback to summary
pack-priv static final long MASK_SIGN
MASK_SIGNIFICANDback to summary
pack-priv static final long MASK_SIGNIFICAND
NEGATIVE_ZERO_BITSback to summary
pack-priv static final long NEGATIVE_ZERO_BITS

Constructor Detail

Binary64back to summary
public Binary64()

Method Detail

unpackGetExponentUnbiasedback to summary
public static long unpackGetExponentUnbiased(final double d)

Extract and unbias the exponent of the given packed double value.

The exponent is encoded biased as a number in the range [0, 2047], with 0 indicating that the number is subnormal and [1, 2046] denoting the actual exponent plus BIAS. Infinite and NaN values always have a biased exponent of 2047.

This function will therefore return:

See Also
packSetExponentUnbiasedUnchecked(int)
unpackGetSignback to summary
public static long unpackGetSign(final double d)

Return the sign of the given double value.

unpackGetSignificandback to summary
public static long unpackGetSignificand(final double d)

Return the significand of the given double value.