diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-10-19 13:28:41 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-10-19 13:28:41 +0000 |
commit | bef63be8184b031ee60589d8685e554df47a290e (patch) | |
tree | 8f68544e1f63a4d22ee803766cbc592f675434df /mpfr-impl.h | |
parent | ff9eb7a98a631caf1caedfd56470dccd04ce5b3a (diff) | |
download | mpfr-bef63be8184b031ee60589d8685e554df47a290e.tar.gz |
Macro MPFR_RET_NAN.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1303 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr-impl.h')
-rw-r--r-- | mpfr-impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mpfr-impl.h b/mpfr-impl.h index e5ec106b0..599106dcb 100644 --- a/mpfr-impl.h +++ b/mpfr-impl.h @@ -95,8 +95,11 @@ typedef union ieee_double_extract Ieee_double_extract; #define MPFR_SET_ZERO(x) \ (MPFR_MANT(x)[(MPFR_PREC(x)-1)/BITS_PER_MP_LIMB] = (mp_limb_t) 0) +/* When returning the ternary inexact value, ALWAYS use one of the + following two macros */ #define MPFR_RET(I) return \ (I) ? ((__mpfr_flags |= MPFR_FLAGS_INEXACT), (I)) : 0 +#define MPFR_RET_NAN return (__mpfr_flags |= MPFR_FLAGS_NAN), 0 /* Memory gestion */ |