diff options
Diffstat (limited to 'sysdeps/powerpc/fpu/s_rintf.c')
-rw-r--r-- | sysdeps/powerpc/fpu/s_rintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/powerpc/fpu/s_rintf.c b/sysdeps/powerpc/fpu/s_rintf.c index dde40bb3e5..12c6b55976 100644 --- a/sysdeps/powerpc/fpu/s_rintf.c +++ b/sysdeps/powerpc/fpu/s_rintf.c @@ -1,5 +1,5 @@ /* Round a 32-bit floating point value to the nearest integer. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -33,8 +33,8 @@ __rintf (float x) } else if (x < 0.0) { - x -= TWO23; - x += TWO23; + x = TWO23 - x; + x = -(x - TWO23); } } |