1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

Optimize use of isnan, isinf, finite

This commit is contained in:
Ulrich Drepper
2011-10-08 10:18:26 -04:00
parent 187da0aedc
commit 7edb55ce06
35 changed files with 236 additions and 63 deletions

View File

@@ -39,9 +39,9 @@ static char rcsid[] = "$NetBSD: $";
long double z;
z = __ieee754_fmodl(x,y);
if(_LIB_VERSION == _IEEE_ ||__isnanl(y)||__isnanl(x)) return z;
if(__isinfl(x)||y==0.0) {
if(__isinf_nsl(x)||y==0.0) {
/* fmodl(+-Inf,y) or fmodl(x,0) */
return __kernel_standard(x,y,227);
return __kernel_standard(x,y,227);
} else
return z;
#endif