diff options
author | kargl <kargl@FreeBSD.org> | 2014-07-13 16:05:33 +0000 |
---|---|---|
committer | kargl <kargl@FreeBSD.org> | 2014-07-13 16:05:33 +0000 |
commit | c5f377d075657b24c14fa79dbbbecb66d83226eb (patch) | |
tree | 74fddece7a690b7ab940b6e8fdb6848eaf1c588e /lib | |
parent | 4b4b560c4773d24058f7044309b4aba9e4ba9bb4 (diff) | |
download | FreeBSD-src-c5f377d075657b24c14fa79dbbbecb66d83226eb.zip FreeBSD-src-c5f377d075657b24c14fa79dbbbecb66d83226eb.tar.gz |
* Update the comments that refer to erf[c](nan) and erf[c](+-inf)
to use erf[c]f.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msun/src/s_erff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/msun/src/s_erff.c b/lib/msun/src/s_erff.c index 6dfdf87..abbf670 100644 --- a/lib/msun/src/s_erff.c +++ b/lib/msun/src/s_erff.c @@ -89,9 +89,9 @@ erff(float x) float R,S,P,Q,s,y,z,r; GET_FLOAT_WORD(hx,x); ix = hx&0x7fffffff; - if(ix>=0x7f800000) { /* erf(nan)=nan */ + if(ix>=0x7f800000) { /* erff(nan)=nan */ i = ((u_int32_t)hx>>31)<<1; - return (float)(1-i)+one/x; /* erf(+-inf)=+-1 */ + return (float)(1-i)+one/x; /* erff(+-inf)=+-1 */ } if(ix < 0x3f580000) { /* |x|<0.84375 */ @@ -136,8 +136,8 @@ erfcf(float x) float R,S,P,Q,s,y,z,r; GET_FLOAT_WORD(hx,x); ix = hx&0x7fffffff; - if(ix>=0x7f800000) { /* erfc(nan)=nan */ - /* erfc(+-inf)=0,2 */ + if(ix>=0x7f800000) { /* erfcf(nan)=nan */ + /* erfcf(+-inf)=0,2 */ return (float)(((u_int32_t)hx>>31)<<1)+one/x; } |