summaryrefslogtreecommitdiff
path: root/libm/rndint.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-23 08:49:34 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-23 08:49:34 +0000
commit648d5f450ee2f904916082d9eac2f230ecece314 (patch)
tree23f356e9a49d94933b1d84ed043ad5c29c222bf5 /libm/rndint.c
parent7ce331c01ce6eb7b3f5c715a38a24359da9c6ee2 (diff)
Default to building C89 math stuff only. Cleanup some warnings.
-Erik
Diffstat (limited to 'libm/rndint.c')
-rw-r--r--libm/rndint.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libm/rndint.c b/libm/rndint.c
index 611fd9274..7f8c183d4 100644
--- a/libm/rndint.c
+++ b/libm/rndint.c
@@ -175,7 +175,10 @@ double rint ( double x )
double nearbyint ( double x )
{
- double y, OldEnvironment;
+ double y;
+#if defined(__ppc__)
+ double OldEnvironment;
+#endif /* __ppc__ */
y = twoTo52;
@@ -397,8 +400,10 @@ long int roundtol ( double x )
DblInHex argument, OldEnvironment;
register unsigned long int xhi;
register long int target;
+#if defined(__ppc__)
const DblInHex kTZ = {{ 0x0, 0x1 }};
const DblInHex kUP = {{ 0x0, 0x2 }};
+#endif /* __ppc__ */
argument.dbl = x;
xhi = argument.words.hi & 0x7ffffffful; // high 32 bits of x