summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkargl <kargl@FreeBSD.org>2014-07-13 16:05:33 +0000
committerkargl <kargl@FreeBSD.org>2014-07-13 16:05:33 +0000
commitc5f377d075657b24c14fa79dbbbecb66d83226eb (patch)
tree74fddece7a690b7ab940b6e8fdb6848eaf1c588e /lib
parent4b4b560c4773d24058f7044309b4aba9e4ba9bb4 (diff)
downloadFreeBSD-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.c8
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;
}
OpenPOWER on IntegriCloud