From 6d0a3a4dcfc866ef46e8ab30a00cd59daf3dccb9 Mon Sep 17 00:00:00 2001 From: Paul Zimmermann Date: Sun, 1 Mar 2020 19:34:14 +0100 Subject: fixed MPFR_ADD_ONE_ULP and MPFR_SUB_ONE_ULP --- src/mpc-impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpc-impl.h b/src/mpc-impl.h index 5420691..6af2594 100644 --- a/src/mpc-impl.h +++ b/src/mpc-impl.h @@ -61,9 +61,9 @@ along with this program. If not, see http://www.gnu.org/licenses/ . mpfr_copysign (x, y, z, rnd)) /* work around spurious signs in nan */ #define MPFR_ADD_ONE_ULP(x) \ - (mpfr_sgn (x) > 0 ? mpfr_nextabove (x) : mpfr_nextbelow (x)) + (MPFR_SIGN (x) > 0 ? mpfr_nextabove (x) : mpfr_nextbelow (x)) #define MPFR_SUB_ONE_ULP(x) \ - (mpfr_sgn (x) > 0 ? mpfr_nextbelow (x) : mpfr_nextabove (x)) + (MPFR_SIGN (x) > 0 ? mpfr_nextbelow (x) : mpfr_nextabove (x)) /* drop unused rounding mode from macros */ #define MPFR_SWAP(a,b) do { mpfr_srcptr tmp; tmp = a; a = b; b = tmp; } while (0) -- cgit v1.2.1