![]() |
|
Message-ID: <2cce3499-6beb-1b35-d229-c8b322f0783f@esi.com.au> Date: Tue, 19 Aug 2025 16:59:33 +1000 (AEST) From: Damian McGuckin <damianm@....com.au> To: MUSL <musl@...ts.openwall.com> Subject: Re: Should asinf(x) raise underflow for subnormal 'x' On Mon, 18 Aug 2025, Rich Felker wrote: > On Mon, Aug 18, 2025 at 04:43:46PM +1000, Damian McGuckin wrote: >> >> The routine correctly returns 'x' for subnormal 'x'. >> >> For comparison, atan(x) for subnormal x returns 'x' and raises underflow. >> >> Should not asinf(x) also do the same? >> >> Also, should not both of these raise inexact when the result is small but >> still normal, i.e. the return value is just 'x'. > > This all sounds right and like it's an oversight. The code as it is written would satisfy IEEE 754 1985 but not the later variants which tightened that up. And that code predates the later variants. Thanks - 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.