|
|
Message-ID: <ff31012-c0e2-847-24ba-387afb55c6b@esi.com.au>
Date: Fri, 31 Jul 2026 11:08:39 +1000 (AEST)
From: Damian McGuckin <damianm@....com.au>
To: musl@...ts.openwall.com
cc: Paul Zimmermann <Paul.Zimmermann@...ia.fr>
Subject: Re: issue in acosh
On Thu, 30 Jul 2026, Rich Felker wrote:
>> if (einf <= e || e < b ) /* x < 0 || x is a NaN || x == INF || x < 1 */
>> {
>> return x != x || x == INFINITY ? x + x : (x - x) / (x - x);
>> }
>
> I don't think nan/inf need special treatment here. Just
>
> if (e < 0x3ff) x = 0;
>
> should make it work fine.
I do not quite understand.
Also, you need to treat -INFINITY different to +INFINITY.
Regards - Damian
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.