summaryrefslogtreecommitdiff
path: root/cmp.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-02-11 17:16:36 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-02-11 17:16:36 +0000
commitdf588f2e0ef1e176cb1ea6bf020b4be7df6dbdaf (patch)
tree53eb40d88d344756931d7772ead445fe4565a6bd /cmp.c
parenta680e87f76c00fe4790b09955d8cb6639eefa59a (diff)
downloadmpfr-df588f2e0ef1e176cb1ea6bf020b4be7df6dbdaf.tar.gz
SIGN -> MPFR_SIGN
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@470 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cmp.c')
-rw-r--r--cmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmp.c b/cmp.c
index b64506b03..303430545 100644
--- a/cmp.c
+++ b/cmp.c
@@ -54,13 +54,13 @@ mpfr_cmp3(b, c, s)
mp_limb_t *bp, *cp;
if (!NOTZERO(b) && !NOTZERO(c)) { return 0; }
- s = s*SIGN(b)*SIGN(c);
- if (s<0) return(SIGN(b));
+ s = s * MPFR_SIGN(b) * MPFR_SIGN(c);
+ if (s<0) return(MPFR_SIGN(b));
/* now signs are equal */
diff_exp = EXP(b)-EXP(c);
- s = (SIGN(b)>0) ? 1 : -1;
+ s = (MPFR_SIGN(b) > 0) ? 1 : -1;
if (diff_exp>0) return(s*(1+diff_exp));
else if (diff_exp<0) return(s*(-1+diff_exp));