summaryrefslogtreecommitdiff
path: root/asin.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-06-16 12:08:30 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-06-16 12:08:30 +0000
commitb33489baf46ecae42cd76780e57903fefe97116f (patch)
tree8fa6952d043e4a7334934d82513b0b9c6e09eef1 /asin.c
parentfe7dda89688288c244a8e98478e7f1a4c047f802 (diff)
downloadmpfr-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/asin.c b/asin.c
index 88208e7bf..2165e4d1b 100644
--- a/asin.c
+++ b/asin.c
@@ -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);