summaryrefslogtreecommitdiff
path: root/cmp.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-12-14 10:54:47 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-12-14 10:54:47 +0000
commitfa276d90124222cbfe5c8cebf366da2ec4393447 (patch)
treec85f519a4c91193639258d9ed32de583db8ab1b6 /cmp.c
parentfa7148b432392c6e081ba26bd793f6f4c01c3ef6 (diff)
downloadmpfr-fa276d90124222cbfe5c8cebf366da2ec4393447.tar.gz
Add "MPFR_USE_NO_MACRO" user macro: it allows the user to link
directly with MPFR functions rather than using Macros to access them. It doesn't define MPFR variable inside mpfr.h too. Fix set.c and cmp.c in consequences. Fix mpf2mpfr.h to use mpfr_get_default_rounding_mode () if needed. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3135 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cmp.c')
-rw-r--r--cmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmp.c b/cmp.c
index 641954b32..36afcd54f 100644
--- a/cmp.c
+++ b/cmp.c
@@ -95,8 +95,9 @@ mpfr_cmp3 (mpfr_srcptr b, mpfr_srcptr c, int s)
return 0;
}
+#undef mpfr_cmp
int
-(mpfr_cmp) (mpfr_srcptr b, mpfr_srcptr c)
+mpfr_cmp (mpfr_srcptr b, mpfr_srcptr c)
{
- return mpfr_cmp(b, c);
+ return mpfr_cmp3 (b, c, 1);
}