[PATCH v2 1/8] math: Use cosh from CORE-MATH

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Mar 11 18:14:39 GMT 2026



On 11/03/26 03:43, Paul Zimmermann wrote:
>        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?

I will do, and I will need to send a new version to sync with some fixes for
cosh.


More information about the Libc-alpha mailing list