summaryrefslogtreecommitdiff
path: root/mpfr/mul_2exp.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpfr/mul_2exp.c')
-rw-r--r--mpfr/mul_2exp.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/mpfr/mul_2exp.c b/mpfr/mul_2exp.c
index e070896a3..6f3ef9eb3 100644
--- a/mpfr/mul_2exp.c
+++ b/mpfr/mul_2exp.c
@@ -19,21 +19,17 @@ 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 <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
#include "mpfr.h"
#include "mpfr-impl.h"
+/* Obsolete function, use mpfr_mul_2ui or mpfr_mul_2si instead. */
+
+#undef mpfr_mul_2exp
+
int
mpfr_mul_2exp (mpfr_ptr y, mpfr_srcptr x, unsigned long int n, mp_rnd_t rnd_mode)
{
- int inexact = 0;
-
- /* Important particular case */
- if (y != x)
- inexact = mpfr_set (y, x, rnd_mode);
- return ((MPFR_EXP(y) += n) > __mpfr_emax)
- ? mpfr_set_overflow (y, rnd_mode, MPFR_SIGN(y)) : inexact;
+ return mpfr_mul_2ui (y, x, n, rnd_mode);
}
-