diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-12-14 10:54:47 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-12-14 10:54:47 +0000 |
commit | fa276d90124222cbfe5c8cebf366da2ec4393447 (patch) | |
tree | c85f519a4c91193639258d9ed32de583db8ab1b6 /cmp.c | |
parent | fa7148b432392c6e081ba26bd793f6f4c01c3ef6 (diff) | |
download | mpfr-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |