diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-03-06 07:11:53 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-03-06 07:11:53 +0000 |
commit | c4e44e97f8562254d9da898f6ed7e6cb4d8a3ce4 (patch) | |
tree | 6c61f83ac5b94085222b3eda8d731309d61be99b /libm/powerpc/s_floor.c | |
parent | d4fad9c64ee518be51ecb40662af69b405a49556 (diff) |
Trim off whitespace
Diffstat (limited to 'libm/powerpc/s_floor.c')
-rw-r--r-- | libm/powerpc/s_floor.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libm/powerpc/s_floor.c b/libm/powerpc/s_floor.c index f7b4534bb..94677b4d2 100644 --- a/libm/powerpc/s_floor.c +++ b/libm/powerpc/s_floor.c @@ -52,24 +52,24 @@ double floor ( double x ) register double y; register unsigned long int xhi; register long 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 floor ( 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 floor ( double x ) else return ( y ); } - - else + + else { y = ( x - twoTo52 ) + twoTo52; // round at binary pt. if ( y > x ) |