summaryrefslogtreecommitdiff
path: root/round_prec.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-10 11:49:58 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-10 11:49:58 +0000
commit297d69f49e18b69a52a7fbfbc69e18186a0c936a (patch)
treeefaec99d184d8936558fa216ed414327c4bab1f1 /round_prec.c
parent46041125369a8ea5394602f91032a30acf643078 (diff)
downloadmpfr-297d69f49e18b69a52a7fbfbc69e18186a0c936a.tar.gz
1. Change the prototype of mpfr_can_round to use const.
2. Change the prototype of mpfr_round_raw_2 (remove first argument since it is useless). 3. Change round_raw_generic to use preprocessor if rather than compiler to detect if flag == 1 or 0 4. mpfr_round_raw_xxx use const attribute too. 5. Remove mpfr_round_raw_3 since it is unused by MPFR. 6. Add first prototype of MPFR_FAST_COMPUTE_IF_SMALL. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3536 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'round_prec.c')
-rw-r--r--round_prec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/round_prec.c b/round_prec.c
index ddaf63854..b08292198 100644
--- a/round_prec.c
+++ b/round_prec.c
@@ -33,10 +33,12 @@ MA 02111-1307, USA. */
#define use_inexp 0
#include "round_raw_generic.c"
+/* Seems to be unused. Remove comment to implement it.
#define mpfr_round_raw_generic mpfr_round_raw_3
#define flag 1
#define use_inexp 1
#include "round_raw_generic.c"
+*/
#define mpfr_round_raw_generic mpfr_round_raw_4
#define flag 0
@@ -116,7 +118,7 @@ mpfr_prec_round (mpfr_ptr x, mp_prec_t prec, mp_rnd_t rnd_mode)
*/
int
-mpfr_can_round (mpfr_ptr b, mp_exp_t err, mp_rnd_t rnd1,
+mpfr_can_round (mpfr_srcptr b, mp_exp_t err, mp_rnd_t rnd1,
mp_rnd_t rnd2, mp_prec_t prec)
{
if (MPFR_UNLIKELY(MPFR_IS_SINGULAR(b)))
@@ -127,7 +129,7 @@ mpfr_can_round (mpfr_ptr b, mp_exp_t err, mp_rnd_t rnd1,
}
int
-mpfr_can_round_raw (mp_limb_t *bp, mp_size_t bn, int neg, mp_exp_t err0,
+mpfr_can_round_raw (const mp_limb_t *bp, mp_size_t bn, int neg, mp_exp_t err0,
mp_rnd_t rnd1, mp_rnd_t rnd2, mp_prec_t prec)
{
mp_prec_t err;