diff options
author | Paul Zimmermann <Paul.Zimmermann@inria.fr> | 2020-03-01 19:34:14 +0100 |
---|---|---|
committer | Paul Zimmermann <Paul.Zimmermann@inria.fr> | 2020-03-01 19:34:14 +0100 |
commit | 6d0a3a4dcfc866ef46e8ab30a00cd59daf3dccb9 (patch) | |
tree | ce6424cd72133a89447c231c4306a84e75279aeb | |
parent | 22882f8ba17f89073451f91ce52825ea65bfa1b7 (diff) | |
download | mpc-git-6d0a3a4dcfc866ef46e8ab30a00cd59daf3dccb9.tar.gz |
fixed MPFR_ADD_ONE_ULP and MPFR_SUB_ONE_ULP
-rw-r--r-- | src/mpc-impl.h | 4 |
1 files 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) |