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

public final Class Binary32

extends Object
Class Inheritance

Functions for interrogating binary32 (float) values.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
unpackGetExponentUnbiased(final float d)

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

public static int
unpackGetSign(final float d)

Return the sign of the given float value.

public static int
unpackGetSignificand(final float d)

Return the significand of the given float value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

Binary32back to summary
public Binary32()

Method Detail

unpackGetExponentUnbiasedback to summary
public static int unpackGetExponentUnbiased(final float d)

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

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

This function will therefore return:

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

Return the sign of the given float value.

unpackGetSignificandback to summary
public static int unpackGetSignificand(final float d)

Return the significand of the given float value.