From db110f3c56448f3084cc474bf4185ee2486ae96b Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 30 Jun 2014 09:57:36 +0000 Subject: =?UTF-8?q?New=20macros=20for=20mpfr=5F{mul,div}=5Fui=20to=20optim?= =?UTF-8?q?ize=20the=20call=20when=20the=20integer=20is=20a=20constant=20n?= =?UTF-8?q?umber=20that=20is=20a=20power=20of=202.=20New=20macros=20for=20?= =?UTF-8?q?mpfr=5F{mul,div}=5Fsi=20to=20optimize=20the=20call=20when=20the?= =?UTF-8?q?=20integer=20is=20a=20constant=20number=20that=20is=20positive.?= =?UTF-8?q?=20(Modified=20patch=20from=20Patrick=20P=C3=A9lissier)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9111 280ebfd0-de03-0410-8827-d642c229c3f4 --- src/div_ui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/div_ui.c') diff --git a/src/div_ui.c b/src/div_ui.c index bed6b6e00..beee07d0d 100644 --- a/src/div_ui.c +++ b/src/div_ui.c @@ -24,6 +24,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" /* returns 0 if result exact, non-zero otherwise */ +#undef mpfr_div_ui MPFR_HOT_FUNCTION_ATTR int mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode) { @@ -259,6 +260,7 @@ mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode return mpfr_check_range (y, inexact, rnd_mode); } +#undef mpfr_div_si int mpfr_div_si (mpfr_ptr y, mpfr_srcptr x, long int u, mpfr_rnd_t rnd_mode) { -- cgit v1.2.1