mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Obsolete comment in powl, and (s)NaN handling ?
@ 2024-08-05 12:22 Selene Corbineau
  2024-08-05 13:18 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Selene Corbineau @ 2024-08-05 12:22 UTC (permalink / raw)
  To: musl; +Cc: Paul Zimmermann

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-05 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-05 12:22 [musl] Obsolete comment in powl, and (s)NaN handling ? Selene Corbineau
2024-08-05 13:18 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).