diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-10-26 11:59:59 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-10-26 11:59:59 +0000 |
commit | da4b19c01ec0e27d42071d294e29fc56e1a1b16a (patch) | |
tree | 393496f9c6cc54d9bcde0fc0d77691fdcfdf255a /agm.c | |
parent | 33336e9a85f1ae242191e1b2286cded95f11362b (diff) | |
download | mpfr-da4b19c01ec0e27d42071d294e29fc56e1a1b16a.tar.gz |
protected all macros: xxx -> MPFR_xxx
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@786 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'agm.c')
-rw-r--r-- | agm.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -53,24 +53,24 @@ mpfr_agm(r, a, b, rnd_mode) /* If a or b is NaN, the result is NaN */ - if (FLAG_NAN(op1) || FLAG_NAN(op2)) - { SET_NAN(r); return; } + if (MPFR_IS_NAN(op1) || MPFR_IS_NAN(op2)) + { MPFR_SET_NAN(r); return; } /* If a or b is negative, the result is NaN */ if ((MPFR_SIGN(op1) < 0) || (MPFR_SIGN(op2) < 0)) - { SET_NAN(r); return; } + { MPFR_SET_NAN(r); return; } /* If a or b is 0, the result is 0 */ - if ((NOTZERO(op1) && NOTZERO(op2)) == 0) - { SET_ZERO(r); + if ((MPFR_NOTZERO(op1) && MPFR_NOTZERO(op2)) == 0) + { MPFR_SET_ZERO(r); return; } /* precision of the following calculus */ - q = PREC(r); + q = MPFR_PREC(r); p = q + 15; |