|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Functions for interrogating binary32 (float) values.
More...
Static Public Member Functions | |
| static int | unpackGetExponentUnbiased (final float d) |
| static int | unpackGetSign (final float d) |
| static int | unpackGetSignificand (final float d) |
Functions for interrogating binary32 (float) values.
Definition at line 35 of file Binary32.java.
|
static |
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:
0 - BIAS = -127 iff the input is a subnormal number. [1 - BIAS, 254 - BIAS] = [-126, 127] iff the input is a normal number. 255 - BIAS = 128 iff the input is POSITIVE_INFINITY, NEGATIVE_INFINITY, or NaN. Definition at line 82 of file Binary32.java.
|
static |
Return the sign of the given float value.
Definition at line 97 of file Binary32.java.
|
static |
Return the significand of the given float value.
Definition at line 110 of file Binary32.java.