[PATCH v2 3/8] math: Use sinh from CORE-MATH
DJ Delorie
dj@redhat.com
Wed Mar 11 22:42:37 GMT 2026
Paul Zimmermann <Paul.Zimmermann@inria.fr> writes:
> thank you DJ, I changed to hexadecimal constants upstream:
>
> - double e = 0.12e-18*th, lb = rh + (rl - e), ub = rh + (rl + e);
> + double e = 0x1.1b6p-63*th, lb = rh + (rl - e), ub = rh + (rl + e);
>
> - double e = 0.122e-18*rh, lb = rh + (rl - e), ub = rh + (rl + e);
> + double e = 0x1.202p-63*rh, lb = rh + (rl - e), ub = rh + (rl + e);
>
> - double e = 0.38e-18*rh, lb = rh + (rl - e), ub = rh + (rl + e);
> + double e = 0x1.c0ap-62*rh, lb = rh + (rl - e), ub = rh + (rl + e);
That change alone tells me these constants don't need the precision of a
p format, because those values don't exactly match ;-)
I still think the consistency is worth the change though, because you
can specify how many bits of useful precision you need.
More information about the Libc-alpha
mailing list