summaryrefslogtreecommitdiff
path: root/pow.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-11-29 18:03:50 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-11-29 18:03:50 +0000
commitcab94472cfb3ee04d2c9b7ca38b5d2c387097235 (patch)
tree79b7dcac4274eb812922d9bb55326e2896c9a8d5 /pow.c
parent3fb454bd400ab7f28f094b9df036f5b9ace2f854 (diff)
downloadmpfr-cab94472cfb3ee04d2c9b7ca38b5d2c387097235.tar.gz
Fixed indentation.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5058 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'pow.c')
-rw-r--r--pow.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/pow.c b/pow.c
index c2d9b1508..03e6ed2b4 100644
--- a/pow.c
+++ b/pow.c
@@ -340,26 +340,26 @@ mpfr_pow (mpfr_ptr z, mpfr_srcptr x, mpfr_srcptr y, mp_rnd_t rnd_mode)
/* detect underflows: for x > 0, y < 0, |x^y| = |(1/x)^(-y)|
<= 2^((1-EXP(x))*(-y)) */
if (MPFR_IS_NEG(y) && MPFR_EXP(x) > 1)
- {
- mpfr_t tmp;
- int negative, underflow;
-
- /* We must restore the flags if no underflow. */
- MPFR_SAVE_EXPO_MARK (expo);
- mpfr_init2 (tmp, 53);
- mpfr_neg (tmp, y, GMP_RNDZ);
- mpfr_mul_si (tmp, tmp, 1 - MPFR_EXP(x), GMP_RNDZ);
- underflow = mpfr_cmp_si (tmp, __gmpfr_emin - 2) <= 0;
- mpfr_clear (tmp);
- MPFR_SAVE_EXPO_FREE (expo);
- if (underflow)
- {
- /* warning: mpfr_underflow rounds away from 0 for GMP_RNDN */
- negative = MPFR_SIGN(x) < 0 && is_odd (y);
- return mpfr_underflow (z, (rnd_mode == GMP_RNDN) ? GMP_RNDZ : rnd_mode,
- negative ? -1 : 1);
- }
- }
+ {
+ mpfr_t tmp;
+ int negative, underflow;
+
+ /* We must restore the flags if no underflow. */
+ MPFR_SAVE_EXPO_MARK (expo);
+ mpfr_init2 (tmp, 53);
+ mpfr_neg (tmp, y, GMP_RNDZ);
+ mpfr_mul_si (tmp, tmp, 1 - MPFR_EXP(x), GMP_RNDZ);
+ underflow = mpfr_cmp_si (tmp, __gmpfr_emin - 2) <= 0;
+ mpfr_clear (tmp);
+ MPFR_SAVE_EXPO_FREE (expo);
+ if (underflow)
+ {
+ /* warning: mpfr_underflow rounds away from 0 for GMP_RNDN */
+ negative = MPFR_SIGN(x) < 0 && is_odd (y);
+ return mpfr_underflow (z, (rnd_mode == GMP_RNDN) ? GMP_RNDZ :
+ rnd_mode, negative ? -1 : 1);
+ }
+ }
/* If y is an integer, we can use mpfr_pow_z (based on multiplications),
but if y is very large (I'm not sure about the best threshold -- VL),