diff options
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 */ |