This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/58625] std::signbit always converts to double
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 05 Oct 2013 10:52:07 +0000
- Subject: [Bug libstdc++/58625] std::signbit always converts to double
- Auto-submitted: auto-generated
- References: <bug-58625-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58625
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That said, I'd say that every conversion to double that would change the sign
looks wrong to me, no matter of what the rounding mode is, except perhaps for
NaN canonicalization and that sNaN could be signalled. So IMHO this is mostly
an optimization thing, not correctness.