diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-06-16 12:08:30 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-06-16 12:08:30 +0000 |
commit | b33489baf46ecae42cd76780e57903fefe97116f (patch) | |
tree | 8fa6952d043e4a7334934d82513b0b9c6e09eef1 /asin.c | |
parent | fe7dda89688288c244a8e98478e7f1a4c047f802 (diff) | |
download | mpfr-b33489baf46ecae42cd76780e57903fefe97116f.tar.gz |
Unlikely some tests.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2927 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'asin.c')
-rw-r--r-- | asin.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - #include "mpfr-impl.h" int @@ -63,14 +62,14 @@ mpfr_asin (mpfr_ptr asin, mpfr_srcptr x, mp_rnd_t rnd_mode) compared = mpfr_cmp_ui (xp, 1); - if (compared > 0) /* asin(x) = NaN for |x| > 1 */ + if (MPFR_UNLIKELY(compared > 0)) /* asin(x) = NaN for |x| > 1 */ { MPFR_SET_NAN(asin); mpfr_clear (xp); MPFR_RET_NAN; } - if (compared == 0) /* x = 1 or x = -1 */ + if (MPFR_UNLIKELY(compared == 0)) /* x = 1 or x = -1 */ { if (MPFR_IS_POS_SIGN(sign)) /* asin(+1) = Pi/2 */ inexact = mpfr_const_pi (asin, rnd_mode); |