From 7edb55ce06ab1fa716a062cd1cb6682585bb449d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 8 Oct 2011 10:18:26 -0400 Subject: Optimize use of isnan, isinf, finite --- math/w_fmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'math/w_fmod.c') diff --git a/math/w_fmod.c b/math/w_fmod.c index 69102de9c5..b93ff8935e 100644 --- a/math/w_fmod.c +++ b/math/w_fmod.c @@ -35,9 +35,9 @@ static char rcsid[] = "$NetBSD: w_fmod.c,v 1.6 1995/05/10 20:48:55 jtc Exp $"; double z; z = __ieee754_fmod(x,y); if(_LIB_VERSION == _IEEE_ ||__isnan(y)||__isnan(x)) return z; - if(__isinf(x)||y==0.0) { + if(__isinf_ns(x)||y==0.0) { /* fmod(+-Inf,y) or fmod(x,0) */ - return __kernel_standard(x,y,27); + return __kernel_standard(x,y,27); } else return z; #endif -- cgit v1.2.3