summaryrefslogtreecommitdiff
path: root/mpfr.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2009-09-14 16:29:44 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2009-09-14 16:29:44 +0000
commitff093de3a0e8ab9e49e54fb17a095ce2d9c4f9d2 (patch)
tree03bae7a0952981cf303d7054241be6329c8ea1a5 /mpfr.h
parentb55788928572dd320a39564aafd1fb152499662d (diff)
downloadmpfr-ff093de3a0e8ab9e49e54fb17a095ce2d9c4f9d2.tar.gz
mpfr.h: added mpfr_regular_p macro.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6421 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.h')
-rw-r--r--mpfr.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/mpfr.h b/mpfr.h
index 73ca46c3a..5cbb47d86 100644
--- a/mpfr.h
+++ b/mpfr.h
@@ -726,9 +726,10 @@ __MPFR_DECLSPEC int mpfr_custom_get_kind _MPFR_PROTO ((mpfr_srcptr));
#ifndef MPFR_USE_NO_MACRO
/* Inlining theses functions is both faster and smaller */
-#define mpfr_nan_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_NAN)
-#define mpfr_inf_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_INF)
-#define mpfr_zero_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_ZERO)
+#define mpfr_nan_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_NAN)
+#define mpfr_inf_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_INF)
+#define mpfr_zero_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_ZERO)
+#define mpfr_regular_p(_x) ((_x)->_mpfr_exp > __MPFR_EXP_INF)
#define mpfr_sgn(_x) \
((_x)->_mpfr_exp < __MPFR_EXP_INF ? \
(mpfr_nan_p (_x) ? mpfr_set_erangeflag () : (void) 0), 0 : \