summaryrefslogtreecommitdiff
path: root/div_2ui.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-12-16 00:56:03 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-12-16 00:56:03 +0000
commit2c732d0395f02c6e415aadeb963ab8d9c24a2efa (patch)
tree6696693e53b4db27051f0007e2e4f105a298d0ec /div_2ui.c
parent94680bf0c2219d8eab5c939ab565528d50dbae73 (diff)
downloadmpfr-2c732d0395f02c6e415aadeb963ab8d9c24a2efa.tar.gz
Suppress some #define and fix symbol names (makes code cleaner):
perl -pi -e 's/__mpfr_flags/__gmpfr_flags/g' **/*.{c,h} perl -pi -e 's/__mpfr_emin/__gmpfr_emin/g' **/*.{c,h} perl -pi -e 's/__mpfr_emax/__gmpfr_emax/g' **/*.{c,h} perl -pi -e 's/__mpfr_default_fp_bit_precision/__gmpfr_default_fp_bit_precision/g' **/*.{c,h} perl -pi -e 's/__gmp_default_rounding_mode/__gmpfr_default_rounding_mode/g' **/*.{c,h} perl -pi -e 's/__mpfr_const_log2_prec/__gmpfr_const_log2_prec/g' **/*.{c,h} perl -pi -e 's/__mpfr_const_pi_prec/__gmpfr_const_pi_prec/g' **/*.{c,h} perl -pi -e 's/_mpfr_ceil_log2/__gmpfr_ceil_log2/g' **/*.{c,h} perl -pi -e 's/_mpfr_floor_log2/__gmpfr_floor_log2/g' **/*.{c,h} perl -pi -e 's/_mpfr_ceil_exp2/__gmpfr_ceil_exp2/g' **/*.{c,h} perl -pi -e 's/_mpfr_isqrt/__gmpfr_isqrt/g' **/*.{c,h} perl -pi -e 's/_mpfr_cuberoot/__gmpfr_cuberoot/g' **/*.{c,h} perl -pi -e 's/^#define __gmpfr_.*\n//' *.h git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2125 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'div_2ui.c')
-rw-r--r--div_2ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/div_2ui.c b/div_2ui.c
index 1cf975c8b..294ee85ab 100644
--- a/div_2ui.c
+++ b/div_2ui.c
@@ -48,12 +48,12 @@ mpfr_div_2ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int n, mp_rnd_t rnd_mode)
/* MPFR_EMAX_MAX - (long) n is signed and doesn't lead to an integer
overflow; the first test useful so that the real test can't lead
to an integer overflow. */
- if (__mpfr_emin > MPFR_EMAX_MAX - (long) n ||
- MPFR_EXP(y) < __mpfr_emin + (long) n)
+ if (__gmpfr_emin > MPFR_EMAX_MAX - (long) n ||
+ MPFR_EXP(y) < __gmpfr_emin + (long) n)
{
if (rnd_mode == GMP_RNDN &&
- (__mpfr_emin > MPFR_EMAX_MAX - (long) (n - 1) ||
- MPFR_EXP(y) < __mpfr_emin + (long) (n - 1) ||
+ (__gmpfr_emin > MPFR_EMAX_MAX - (long) (n - 1) ||
+ MPFR_EXP(y) < __gmpfr_emin + (long) (n - 1) ||
mpfr_powerof2_raw (y)))
rnd_mode = GMP_RNDZ;
return mpfr_set_underflow (y, rnd_mode, MPFR_SIGN(y));