Go to the source code of this file.
|
double | scalbn (double x, int32_t n) |
|
|
static const double | two54 = 1.80143985094819840000e+16 |
|
static const double | twom54 = 5.55111512312578270212e-17 |
|
static const double | huge = 1.0e+300 |
|
static const double | tiny = 1.0e-300 |
|
◆ scalbn()
double scalbn |
( |
double |
x, |
|
|
int32_t |
n |
|
) |
| |
Definition at line 56 of file scalbn.c.
References copysign(), huge, tiny, two54, and twom54.
Referenced by __kernel_rem_pio2(), and pow().
60 k = (hx & 0x7ff00000) >> 20;
63 if ((lx | (hx & 0x7fffffff)) == 0)
67 k = ((hx & 0x7ff00000) >> 20) - 54;
#define GET_HIGH_WORD(i, d)
Get the more significant 32 bit int from a double.
static const double two54
#define EXTRACT_WORDS(ix0, ix1, d)
Get two 32 bit ints from a double.
double copysign(double x, double y)
Returns a value with the magnitude of x and with the sign bit of y.
#define SET_HIGH_WORD(d, v)
Set the more significant 32 bits of a double from an int.
static const double twom54
◆ huge
const double huge = 1.0e+300 |
|
static |
◆ tiny
const double tiny = 1.0e-300 |
|
static |
◆ two54
const double two54 = 1.80143985094819840000e+16 |
|
static |
◆ twom54
const double twom54 = 5.55111512312578270212e-17 |
|
static |