summaryrefslogtreecommitdiff
path: root/isnan.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-02-15 22:19:42 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-02-15 22:19:42 +0000
commit712d4a118a3ca3386ec5c55f69ed3342a5b5c2f6 (patch)
tree0a51e10102ce081495944f0418f946736c07957a /isnan.c
parentf255358222b438dd5faec5a81849bb884241845b (diff)
downloadmpfr-712d4a118a3ca3386ec5c55f69ed3342a5b5c2f6.tar.gz
changed _d to _p, added mpfr_number_p
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@996 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'isnan.c')
-rw-r--r--isnan.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/isnan.c b/isnan.c
index ae7cfb1af..a13d9997c 100644
--- a/isnan.c
+++ b/isnan.c
@@ -1,6 +1,6 @@
-/* mpfr_nan_d, mpfr_inf_d -- check for NaN or infinities
+/* mpfr_nan_p, mpfr_inf_p -- check for NaN or infinities
-Copyright (C) 2000 Free Software Foundation.
+Copyright (C) 2000-2001 Free Software Foundation.
This file is part of the MPFR Library.
@@ -25,13 +25,19 @@ MA 02111-1307, USA. */
#include "mpfr-impl.h"
int
-mpfr_nan_d (mpfr_srcptr x)
+mpfr_nan_p (mpfr_srcptr x)
{
return MPFR_IS_NAN (x);
}
int
-mpfr_inf_d (mpfr_srcptr x)
+mpfr_inf_p (mpfr_srcptr x)
{
return (!MPFR_IS_NAN(x) && MPFR_IS_INF(x));
}
+
+int
+mpfr_number_p (mpfr_srcptr x)
+{
+ return !MPFR_IS_NAN(x);
+}