summaryrefslogtreecommitdiff
path: root/sub_ui.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-15 17:29:01 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-15 17:29:01 +0000
commit6d2f39bb6d53d3e442de479235f60d2f737e1782 (patch)
tree5b069cd686590f8cd83dfb1716a5fdc97d2e2474 /sub_ui.c
parentdc503cfbf5103451db9430ce81915eade1f5aa4b (diff)
downloadmpfr-6d2f39bb6d53d3e442de479235f60d2f737e1782.tar.gz
nothing (only better indenting)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@889 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sub_ui.c')
-rw-r--r--sub_ui.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sub_ui.c b/sub_ui.c
index 7f029ae68..9ef5a6a54 100644
--- a/sub_ui.c
+++ b/sub_ui.c
@@ -30,9 +30,9 @@ MA 02111-1307, USA. */
void
#if __STDC__
-mpfr_sub_ui(mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode)
+mpfr_sub_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode)
#else
-mpfr_sub_ui(y, x, u, rnd_mode)
+mpfr_sub_ui (y, x, u, rnd_mode)
mpfr_ptr y;
mpfr_srcptr x;
unsigned long int u;
@@ -44,7 +44,11 @@ mpfr_sub_ui(y, x, u, rnd_mode)
unsigned long cnt;
TMP_DECL(marker);
- if (MPFR_IS_NAN(x)) { MPFR_SET_NAN(y); return; }
+ if (MPFR_IS_NAN(x)) {
+ MPFR_SET_NAN(y);
+ return;
+ }
+
if (MPFR_IS_INF(x))
{
MPFR_SET_INF(y);
@@ -58,7 +62,7 @@ mpfr_sub_ui(y, x, u, rnd_mode)
*up = (mp_limb_t) u << cnt;
MPFR_EXP(uu) = BITS_PER_MP_LIMB-cnt;
- mpfr_sub(y, x, uu, rnd_mode);
+ mpfr_sub (y, x, uu, rnd_mode);
TMP_FREE(marker);
}