summaryrefslogtreecommitdiff
path: root/div_ui.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 12:21:07 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 12:21:07 +0000
commit088e5ec1b3bba2b70c7a01a80842d1eb66b9fa74 (patch)
tree959ac228664af7e206ac4b8a34e1a0bcae4a5da6 /div_ui.c
parent297c27d7fd83489ece0f5a2f47fa19a395182c8f (diff)
downloadmpfr-088e5ec1b3bba2b70c7a01a80842d1eb66b9fa74.tar.gz
removed DEBUG's
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1531 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'div_ui.c')
-rw-r--r--div_ui.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/div_ui.c b/div_ui.c
index c92383261..a8e52b4fc 100644
--- a/div_ui.c
+++ b/div_ui.c
@@ -1,6 +1,6 @@
/* mpfr_div_ui -- divide a floating-point number by a machine integer
-Copyright (C) 1999-2001 Free Software Foundation.
+Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -26,19 +26,9 @@ MA 02111-1307, USA. */
#include "mpfr.h"
#include "mpfr-impl.h"
-/* #define DEBUG */
-
/* returns 0 if result exact, non-zero otherwise */
int
-#ifdef __STDC__
mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode)
-#else
-mpfr_div_ui (y, x, u, rnd_mode)
- mpfr_ptr y;
- mpfr_srcptr x;
- unsigned long int u;
- mp_rnd_t rnd_mode;
-#endif
{
long int xn, yn, dif, sh, i;
mp_limb_t *xp, *yp, *tmp, c, d;
@@ -95,10 +85,6 @@ mpfr_div_ui (y, x, u, rnd_mode)
MPFR_CHANGE_SIGN(y);
dif = yn + 1 - xn;
-#ifdef DEBUG
- printf("dif=%d u=%lu xn=%d\n",dif,u,xn);
- printf("x="); mpfr_print_raw(x); putchar('\n');
-#endif
/* we need to store yn+1 = xn + dif limbs of the quotient */
/* don't use tmp=yp since the mpn_lshift call below requires yp >= tmp+1 */
@@ -145,9 +131,6 @@ mpfr_div_ui (y, x, u, rnd_mode)
}
else
MPN_COPY(yp, tmp + 1, yn);
-#ifdef DEBUG
- printf("y="); mpfr_print_raw(y); putchar('\n');
-#endif
sh = yn * BITS_PER_MP_LIMB - MPFR_PREC(y);
/* it remains sh bits in less significant limb of y */