Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <9ea8df217179a1c6c7bc0bd0d7001721@ens.psl.eu>
Date: Mon, 05 Aug 2024 14:22:34 +0200
From: Selene Corbineau <selene.corbineau@....psl.eu>
To: musl@...ts.openwall.com
Cc: Paul Zimmermann <Paul.Zimmermann@...ia.fr>
Subject: Obsolete comment in powl, and (s)NaN handling ?

Hello,

Currently, src/math/powl.c line 66 states that powl(x, y)
returns 0 when x < 0 and y not an integer. However, lines 290-291

> if (iyflg == 0)
>     return (x - x) / (x - x); /* (x<0)**(non-int) is NaN */

precisely ensure this is not the case. Both these excerpts come
from the original commit. Maybe line 66 should be deleted/corrected ?

Deviating a bit, are there plans for supporting signalling NaNs in Musl 
?

Thanks in advance,
Sélène

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.