We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3634c8 commit b15580bCopy full SHA for b15580b
libc/src/math/generic/asin_utils.h
@@ -165,10 +165,10 @@ constexpr double ASIN_COEFFS[9][12] = {
165
LIBC_INLINE DoubleDouble asin_eval(const DoubleDouble &u, unsigned &idx,
166
double &err) {
167
using fputil::multiply_add;
168
- // k = round(u * 64).
+ // k = round(u * 32).
169
double k = fputil::nearest_integer(u.hi * 0x1.0p5);
170
idx = static_cast<unsigned>(k);
171
- // y = u - k/64.
+ // y = u - k/32.
172
double y_hi = multiply_add(k, -0x1.0p-5, u.hi); // Exact
173
DoubleDouble y = fputil::exact_add(y_hi, u.lo);
174
double y2 = y.hi * y.hi;
0 commit comments