summaryrefslogtreecommitdiff
path: root/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/mul_ui.c')
-rw-r--r--Build/source/libs/mpfr/mpfr-src/src/mul_ui.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c b/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c
index c64c5ca26d3..28c296d1cc8 100644
--- a/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c
+++ b/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c
@@ -1,5 +1,4 @@
/* mpfr_mul_ui -- multiply a floating-point number by a machine integer
- mpfr_mul_si -- multiply a floating-point number by a machine integer
Copyright 1999-2017 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
@@ -24,7 +23,8 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
-int
+#undef mpfr_mul_ui
+MPFR_HOT_FUNCTION_ATTR int
mpfr_mul_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode)
{
mp_limb_t *yp;
@@ -61,7 +61,7 @@ mpfr_mul_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode
MPFR_RET (0); /* zero is exact */
}
}
- else if (MPFR_UNLIKELY (u <= 1))
+ else if (u <= 1)
{
if (u < 1)
{
@@ -117,18 +117,3 @@ mpfr_mul_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode
MPFR_RET (inexact);
}
-
-int mpfr_mul_si (mpfr_ptr y, mpfr_srcptr x, long int u, mpfr_rnd_t rnd_mode)
-{
- int res;
-
- if (u >= 0)
- res = mpfr_mul_ui (y, x, u, rnd_mode);
- else
- {
- res = - mpfr_mul_ui (y, x, - (unsigned long) u,
- MPFR_INVERT_RND (rnd_mode));
- MPFR_CHANGE_SIGN (y);
- }
- return res;
-}