frexp - split a floating point number
Contents
Copyright
Copyright © 2011-2014 Khronos Group
[FIXME: source] 11/18/2024 FREXP(3G)
Declaration
genTypefrexp(genTypex,outgenITypeexp);genDTypefrexp(genDTypex,outgenITypeexp);
Description
frexp extracts x into a floating-point significand in the range [0.5, 1.0) and in integral exponent of
two, such that:
x = significand ⋅ 2 exponent
The significand is returned by the function and the exponent is returned in the output parameter exp. For
a floating-point value of zero, the significand and exponent are both zero. For a floating-point value
that is an infinity or a floating-point NaN, the results are undefined.
Name
frexp - split a floating point number
Parameters
x
Specifies the value from which significand and exponent are to be extracted.
outexp
Specifies the variable into which to place the exponent
See Also
ldexp()
Version Support
┌────────────┬───────────────────────────────────────────────────────────────────────────────────┐
│ │ OpenGLShadingLanguageVersion │
├────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
│ Function │ 1.10 │ 1.20 │ 1.30 │ 1.40 │ 1.50 │ 3.30 │ 4.00 │ 4.10 │ 4.20 │ 4.30 │ 4.40 │ 4.50 │
│ Name │ │ │ │ │ │ │ │ │ │ │ │ │
├────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ frexp │ - │ - │ - │ - │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
│ (genType) │ │ │ │ │ │ │ │ │ │ │ │ │
├────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ frexp │ - │ - │ - │ - │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
│ (genDType) │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘
