mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Selene Corbineau <selene.corbineau@ens.psl.eu>
To: musl@lists.openwall.com
Cc: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Subject: [musl] Obsolete comment in powl, and (s)NaN handling ?
Date: Mon, 05 Aug 2024 14:22:34 +0200	[thread overview]
Message-ID: <9ea8df217179a1c6c7bc0bd0d7001721@ens.psl.eu> (raw)

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

             reply	other threads:[~2024-08-05 12:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 12:22 Selene Corbineau [this message]
2024-08-05 13:18 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ea8df217179a1c6c7bc0bd0d7001721@ens.psl.eu \
    --to=selene.corbineau@ens.psl.eu \
    --cc=Paul.Zimmermann@inria.fr \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).