diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-02-09 02:10:22 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-02-09 02:10:22 +0000 |
commit | 97ac80eddb352e4b15a08a4cdf764b76d6f7d65e (patch) | |
tree | 420e3e0d276a004701cf4b5abc34a4ea77245a20 /src/mul_ui.c | |
parent | e87e7db90443865672fd4ccead176235cf8f812c (diff) | |
download | mpfr-97ac80eddb352e4b15a08a4cdf764b76d6f7d65e.tar.gz |
[src] Moved si ops from mul_ui.c, div_ui.c and ui_div.c to si_op.c.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10006 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mul_ui.c')
-rw-r--r-- | src/mul_ui.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mul_ui.c b/src/mul_ui.c index 04cdc2291..b644fd8fe 100644 --- a/src/mul_ui.c +++ b/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-2016 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. @@ -118,19 +117,3 @@ mpfr_mul_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode MPFR_RET (inexact); } - -#undef mpfr_mul_si -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; -} |