diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2019-06-06 12:43:33 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2019-06-06 12:43:33 +0000 |
commit | 4d0fbb66d892cbbcc8989c8dd4a7ce7a440b3fd5 (patch) | |
tree | 5a4404baeeb165cd940d5f8bf97a8e71a30595cd /src/sub1sp.c | |
parent | 644a418426f6fb2719133671220e485c89744f02 (diff) | |
download | mpfr-4d0fbb66d892cbbcc8989c8dd4a7ce7a440b3fd5.tar.gz |
[src/sub1sp.c] About r13506-13509 and optimization: added a comment
about Clang after some tests (without giving details, as in practice,
this is more complex... but this is the general idea).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13510 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/sub1sp.c')
-rw-r--r-- | src/sub1sp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sub1sp.c b/src/sub1sp.c index 9faf20651..51bd33b83 100644 --- a/src/sub1sp.c +++ b/src/sub1sp.c @@ -142,6 +142,7 @@ mpfr_sub1sp1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode, with condition flags, i.e. the test should be a no-op as the flag should have been obtained from the subtraction above. See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30315>. + As of version 7, Clang knows to optimize the a0 > bp[0]. TODO: revert the test in the future, once compilers have improved? */ MPFR_SET_OPPOSITE_SIGN (a, b); |