summaryrefslogtreecommitdiff
path: root/libm/powerpc/s_ceil.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/powerpc/s_ceil.c')
-rw-r--r--libm/powerpc/s_ceil.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libm/powerpc/s_ceil.c b/libm/powerpc/s_ceil.c
index 790dd7ba0..fd073de7b 100644
--- a/libm/powerpc/s_ceil.c
+++ b/libm/powerpc/s_ceil.c
@@ -52,24 +52,24 @@ double ceil ( double x )
register double y;
register unsigned long int xhi;
register int target;
-
+
xInHex.dbl = x;
xhi = xInHex.words.hi & 0x7fffffffUL; // xhi is the high half of |x|
target = ( xInHex.words.hi < signMask );
-
- if ( xhi < 0x43300000ul )
+
+ if ( xhi < 0x43300000ul )
/*******************************************************************************
* Is |x| < 2.0^52? *
*******************************************************************************/
{
- if ( xhi < 0x3ff00000ul )
+ if ( xhi < 0x3ff00000ul )
/*******************************************************************************
* Is |x| < 1.0? *
*******************************************************************************/
{
if ( ( xhi | xInHex.words.lo ) == 0ul ) // zero x is exact case
return ( x );
- else
+ else
{ // inexact case
asm ("mffs %0" : "=f" (OldEnvironment.dbl));
OldEnvironment.words.lo |= 0x02000000ul;
@@ -83,7 +83,7 @@ double ceil ( double x )
/*******************************************************************************
* Is 1.0 < |x| < 2.0^52? *
*******************************************************************************/
- if ( target )
+ if ( target )
{
y = ( x + twoTo52 ) - twoTo52; // round at binary pt.
if ( y < x )
@@ -91,8 +91,8 @@ double ceil ( double x )
else
return ( y );
}
-
- else
+
+ else
{
y = ( x - twoTo52 ) + twoTo52; // round at binary pt.
if ( y < x )