From 4d0fbb66d892cbbcc8989c8dd4a7ce7a440b3fd5 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 6 Jun 2019 12:43:33 +0000 Subject: [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 --- src/sub1sp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sub1sp.c') 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 . + 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); -- cgit v1.2.1