This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49813] [C++0x] sinh vs asinh vs constexpr
- 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: Thu, 28 Jul 2011 06:48:43 +0000
- Subject: [Bug c++/49813] [C++0x] sinh vs asinh vs constexpr
- Auto-submitted: auto-generated
- References: <bug-49813-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49813
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #51 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-28 06:47:43 UTC ---
It isn't hard to implement it ourselves just on the REAL_VALUE_TYPE type.
We'd just need to handle a few special cases (e.g. x NaN or y NaN I guess we'd
normally just don't optimize), and then we'd just
add_significand/sub_significand of all zeros but LSB bit set, if it returns
non-zero, bump/decrease exponent if possible, if not possible, give up/set to
zero.