summaryrefslogtreecommitdiff
path: root/sub1.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-12-20 12:52:47 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-12-20 12:52:47 +0000
commit6f67a68f3528687f4655c7704883a5e592a61f3f (patch)
tree70a6a5e3dcc76e417e2338eb2b0dbe0fead49e20 /sub1.c
parentb07cac9ffe932f3ecdb2586f42fc4a3692bc8398 (diff)
downloadmpfr-6f67a68f3528687f4655c7704883a5e592a61f3f.tar.gz
Reindent the code.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3155 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sub1.c')
-rw-r--r--sub1.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sub1.c b/sub1.c
index 6bdbebcc3..3d378c837 100644
--- a/sub1.c
+++ b/sub1.c
@@ -50,11 +50,11 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
if (MPFR_UNLIKELY(sign == 0))
{
if (rnd_mode == GMP_RNDD)
- MPFR_SET_NEG(a);
+ MPFR_SET_NEG (a);
else
- MPFR_SET_POS(a);
- MPFR_SET_ZERO(a);
- MPFR_RET(0);
+ MPFR_SET_POS (a);
+ MPFR_SET_ZERO (a);
+ MPFR_RET (0);
}
/*
@@ -75,26 +75,26 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
if (sign < 0) /* swap b and c so that |b| > |c| */
{
mpfr_srcptr t;
- MPFR_SET_OPPOSITE_SIGN(a,b);
+ MPFR_SET_OPPOSITE_SIGN (a,b);
t = b; b = c; c = t;
}
else
- MPFR_SET_SAME_SIGN(a,b);
+ MPFR_SET_SAME_SIGN (a,b);
diff_exp = (mp_exp_unsigned_t) MPFR_GET_EXP (b) - MPFR_GET_EXP (c);
/* reserve a space to store b aligned with the result, i.e. shifted by
(-cancel) % BITS_PER_MP_LIMB to the right */
- bn = MPFR_LIMB_SIZE(b);
- MPFR_UNSIGNED_MINUS_MODULO(shift_b, cancel);
+ bn = MPFR_LIMB_SIZE (b);
+ MPFR_UNSIGNED_MINUS_MODULO (shift_b, cancel);
cancel1 = (cancel + shift_b) / BITS_PER_MP_LIMB;
/* the high cancel1 limbs from b should not be taken into account */
- if (MPFR_UNLIKELY(shift_b == 0))
+ if (MPFR_UNLIKELY (shift_b == 0))
{
bp = MPFR_MANT(b); /* no need of an extra space */
/* Ensure ap != bp */
- if (ap == bp)
+ if (MPFR_UNLIKELY (ap == bp))
{
bp = (mp_ptr) TMP_ALLOC(bn * BYTES_PER_MP_LIMB);
MPN_COPY (bp, ap, bn);