summaryrefslogtreecommitdiff
path: root/get_ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'get_ui.c')
-rw-r--r--get_ui.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/get_ui.c b/get_ui.c
index fec2eeafb..4ed644dae 100644
--- a/get_ui.c
+++ b/get_ui.c
@@ -1,6 +1,6 @@
/* mpfr_get_ui -- convert a floating-point number to an unsigned long.
-Copyright 2003 Free Software Foundation, Inc.
+Copyright 2003, 2004 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -19,9 +19,7 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-#include "gmp.h"
-#include "gmp-impl.h"
-#include "mpfr.h"
+
#include "mpfr-impl.h"
unsigned long
@@ -46,7 +44,7 @@ mpfr_get_ui (mpfr_srcptr f, mp_rnd_t rnd)
/* now the result is in the most significant limb of x */
exp = MPFR_GET_EXP (x); /* since |x| >= 1, exp >= 1 */
n = MPFR_LIMB_SIZE(x);
- s = MPFR_MANT(x)[n - 1] >> (GMP_NUMB_BITS - exp);
+ s = MPFR_MANT(x)[n - 1] >> (BITS_PER_MP_LIMB - exp);
mpfr_clear (x);