diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-02-03 14:33:31 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-02-03 14:33:31 +0000 |
commit | 62046052c1dc3667d6a1e863c362fbd3efa44860 (patch) | |
tree | fbcf47b298646aad75a01292a6b3b872d3a33346 /pow_ui.c | |
parent | 34bb3fcfda03b7f8de6dff6f1088193789fd80c6 (diff) | |
download | mpfr-62046052c1dc3667d6a1e863c362fbd3efa44860.tar.gz |
Rename internal functions mpfr_set_overflow in mpfr_overflow and
mpfr_set_underflow in mpfr_underflow so that we can add new functions
mpfr_set_underflow and mpfr_set_overflow (which set the global flags).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3269 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'pow_ui.c')
-rw-r--r-- | pow_ui.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,8 @@ /* mpfr_pow_ui-- compute the power of a floating-point by a machine integer -Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 + Free Software Foundation, Inc. This file is part of the MPFR Library. @@ -121,7 +122,7 @@ mpfr_pow_ui (mpfr_ptr x, mpfr_srcptr y, unsigned long int n, mp_rnd_t rnd) /* Check Overflow */ if (MPFR_UNLIKELY (mpfr_overflow_p ())) { MPFR_SAVE_EXPO_FREE (expo); - return mpfr_set_overflow (x, rnd, + return mpfr_overflow (x, rnd, (n % 2) ? MPFR_SIGN (y) : MPFR_SIGN_POS); } /* Check Underflow */ @@ -130,7 +131,7 @@ mpfr_pow_ui (mpfr_ptr x, mpfr_srcptr y, unsigned long int n, mp_rnd_t rnd) if (rnd == GMP_RNDN) rnd = GMP_RNDZ; MPFR_SAVE_EXPO_FREE (expo); - return mpfr_set_underflow (x, rnd, + return mpfr_underflow (x, rnd, (n % 2) ? MPFR_SIGN(y) : MPFR_SIGN_POS); } MPFR_SAVE_EXPO_FREE (expo); |