From b10f486987c335320c46619ca156616034a70bc8 Mon Sep 17 00:00:00 2001 From: pelissip Date: Tue, 9 Mar 2004 13:51:50 +0000 Subject: Add mpfr_cmp_ui and mpfr_cmp_si as real functions (The macros are still defined and used). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2824 280ebfd0-de03-0410-8827-d642c229c3f4 --- cmp_si.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmp_si.c') diff --git a/cmp_si.c b/cmp_si.c index fd5810efc..0abba8795 100644 --- a/cmp_si.c +++ b/cmp_si.c @@ -88,3 +88,10 @@ mpfr_cmp_si_2exp (mpfr_srcptr b, long int i, mp_exp_t f) return 0; } } + +#undef mpfr_cmp_si +int +mpfr_cmp_si (mpfr_srcptr b, long int i) +{ + return mpfr_cmp_si_2exp (b, i, 0); +} -- cgit v1.2.1