summaryrefslogtreecommitdiff
path: root/libm/s_expm1.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/s_expm1.c
parent7ce331c01ce6eb7b3f5c715a38a24359da9c6ee2 (diff)
Default to building C89 math stuff only. Cleanup some warnings.
-Erik
Diffstat (limited to 'libm/s_expm1.c')
-rw-r--r--libm/s_expm1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libm/s_expm1.c b/libm/s_expm1.c
index f54fa91f4..301416be2 100644
--- a/libm/s_expm1.c
+++ b/libm/s_expm1.c
@@ -198,9 +198,10 @@ Q5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */
e = (x*(e-c)-c);
e -= hxs;
if(k== -1) return 0.5*(x-e)-0.5;
- if(k==1)
+ if(k==1) {
if(x < -0.25) return -2.0*(e-(x+0.5));
else return one+2.0*(x-e);
+ }
if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */
u_int32_t high;
y = one-(e-x);