Equivalent of C standard library function.
Declared in <llvm/ADT/APFloat.h>
APFloat
frexp(
APFloat const& X,
int& Exp,
roundingMode RM);
While the C standard says Exp is an unspecified value for infinity and nan, this returns INT_MAX for infinities, and INT_MIN for NaNs.
the significand of X in the range [0.5, 1)]
| Name | Description |
|---|---|
| X | value to split into significand and exponent |
| Exp [out] | set to the unbiased exponent of X |
| RM | rounding mode for the significand |