Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libm/src/s_expm1f.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libm/src/s_expm1f.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.7 retrieving revision 1.8 diff -u -p -r1.7 -r1.8 --- src/lib/libm/src/s_expm1f.c 1997/10/09 11:31:45 1.7 +++ src/lib/libm/src/s_expm1f.c 1998/08/19 00:45:37 1.8 @@ -15,7 +15,7 @@ #include #if defined(LIBM_SCCS) && !defined(lint) -__RCSID("$NetBSD: s_expm1f.c,v 1.7 1997/10/09 11:31:45 lukem Exp $"); +__RCSID("$NetBSD: s_expm1f.c,v 1.8 1998/08/19 00:45:37 thorpej Exp $"); #endif #include "math.h" @@ -105,9 +105,10 @@ Q5 = -2.0109921195e-07; /* 0xb457edbb e = (x*(e-c)-c); e -= hxs; if(k== -1) return (float)0.5*(x-e)-(float)0.5; - if(k==1) + if(k==1) { if(x < (float)-0.25) return -(float)2.0*(e-(x+(float)0.5)); else return one+(float)2.0*(x-e); + } if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */ int32_t i; y = one-(e-x);