summaryrefslogtreecommitdiff
path: root/save_expo.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-06-10 14:02:30 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-06-10 14:02:30 +0000
commite9c3a79be2b1ae189daf52280ee06472345714ec (patch)
tree3935011176928d8c54148888e60e752f456b92e6 /save_expo.c
parent2c3b172aeff6c8db829b3933b0a1e015e968dc83 (diff)
downloadmpfr-e9c3a79be2b1ae189daf52280ee06472345714ec.tar.gz
Retab some lines.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2924 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'save_expo.c')
-rw-r--r--save_expo.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/save_expo.c b/save_expo.c
index 0cffd74f7..6af1a6766 100644
--- a/save_expo.c
+++ b/save_expo.c
@@ -30,11 +30,11 @@ static unsigned int save_ctr = 0;
void
mpfr_save_emin_emax (void)
{
- if (save_ctr++ == 0)
+ if (MPFR_LIKELY(save_ctr++ == 0))
{
- saved_flags = __gmpfr_flags;
- saved_emin = __gmpfr_emin;
- saved_emax = __gmpfr_emax;
+ saved_flags = __gmpfr_flags;
+ saved_emin = __gmpfr_emin;
+ saved_emax = __gmpfr_emax;
__gmpfr_emin = MPFR_EMIN_MIN;
__gmpfr_emax = MPFR_EMAX_MAX;
}
@@ -47,10 +47,10 @@ mpfr_save_emin_emax (void)
void
mpfr_restore_emin_emax (void)
{
- if (--save_ctr == 0)
+ if (MPFR_LIKELY(--save_ctr == 0))
{
__gmpfr_flags |= saved_flags;
- __gmpfr_emin = saved_emin;
- __gmpfr_emax = saved_emax;
+ __gmpfr_emin = saved_emin;
+ __gmpfr_emax = saved_emax;
}
}