[PATCH v2 1/8] math: Use cosh from CORE-MATH
Paul Zimmermann
Paul.Zimmermann@inria.fr
Wed Mar 11 06:43:19 GMT 2026
Hi DJ,
thank you for your review.
> > + double e = 0.122e-18 * rh, lb = rh + (rl - e), ub = rh + (rl + e);
>
> 0.122e-18 isn't exact, should use p format. Unless exactness doesn't
> matter here; the p form is messy.
I changed to 0x1.202p-63 upstream
> > + rh = fph + fmh;
> > + rl = ((fph - rh) + fmh) + fml + fpl;
> > + double e = 0.38e-18 * rh, lb = rh + (rl - e), ub = rh + (rl + e);
>
> 0.38e-18 happens to be exact, but still should use p format, unless as above.
I changed to 0x1.c0ap-62 upstream
Adhemerval, please can you update the patch?
Paul
More information about the Libc-alpha
mailing list