summaryrefslogtreecommitdiff
path: root/isinf.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-04-20 09:32:20 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-04-20 09:32:20 +0000
commit97724b73df1ca86917d114df64da54152cdfef5e (patch)
treea659ff4f04469673cc9af66b0fe3dbb6fd4e4759 /isinf.c
parent2b1f5a024237b70c0bde10a682d67ec279479f91 (diff)
downloadmpfr-97724b73df1ca86917d114df64da54152cdfef5e.tar.gz
Add mpfr_zero_p.
Add macros for mpfr_inf_p, mpfr_nan_p and mpfr_zero_p. Add macro for mpfr_sgn. Update doc. Add new tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2871 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'isinf.c')
-rw-r--r--isinf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isinf.c b/isinf.c
index 41b75034e..176bf2b0c 100644
--- a/isinf.c
+++ b/isinf.c
@@ -22,7 +22,7 @@ MA 02111-1307, USA. */
#include "mpfr-impl.h"
int
-mpfr_inf_p (mpfr_srcptr x)
+(mpfr_inf_p) (mpfr_srcptr x)
{
- return !MPFR_IS_NAN(x) && MPFR_IS_INF(x);
+ return MPFR_IS_INF(x);
}