Home | History | Annotate | Download | only in lib

Lines Matching refs:exponent

69   int exponent;
76 x = FREXP (x, &exponent);
79 exponent -= 1;
81 if (exponent < MIN_EXP - 1)
83 x = LDEXP (x, exponent - (MIN_EXP - 1));
84 exponent = MIN_EXP - 1;
88 /* Since the exponent is an 'int', it fits in 64 bits. Therefore the
94 exponent = 0;
97 /* A nonnegative exponent. */
103 x * 2^exponent = argument, x >= 1.0. */
110 exponent += (1 << i);
124 /* A negative exponent. */
130 x * 2^exponent = argument, x < 1.0, exponent >= MIN_EXP - 1. */
135 if (exponent - (1 << i) < MIN_EXP - 1)
138 exponent -= (1 << i);
147 /* Here either x < 1.0 and exponent - 2^i < MIN_EXP - 1 <= exponent,
148 or 1.0 <= x < 2^2^i and exponent >= MIN_EXP - 1. */
151 /* Invariants: x * 2^exponent = argument, x < 1.0 and
152 exponent - 2^i < MIN_EXP - 1 <= exponent. */
156 if (exponent - (1 << i) >= MIN_EXP - 1)
158 exponent -= (1 << i);
165 /* Here either x < 1.0 and exponent = MIN_EXP - 1,
166 or 1.0 <= x < 2^2^i and exponent >= MIN_EXP - 1. */
169 /* Invariants: x * 2^exponent = argument, and
170 either x < 1.0 and exponent = MIN_EXP - 1,
171 or 1.0 <= x < 2^2^i and exponent >= MIN_EXP - 1. */
177 exponent += (1 << i);
181 /* Here either x < 1.0 and exponent = MIN_EXP - 1,
182 or 1.0 <= x < 2.0 and exponent >= MIN_EXP - 1. */
188 *expptr = exponent;