From 16740220a22d09a1c63714d93f1efc5fbe3927f3 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 4 Apr 2001 13:33:01 +0000 Subject: * libc/include/machine/ieeefp.h: Comment about new configuration macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS. * libm/common/fdlib.h: Define new macros for testing floats. * libm/common/sf_*: Use them. * libm/math/ef_*: Likewise. * libm/math/sf_*: Likewise. --- newlib/libm/math/sf_sin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libm/math/sf_sin.c') diff --git a/newlib/libm/math/sf_sin.c b/newlib/libm/math/sf_sin.c index 315d4b4ba..da81845d9 100644 --- a/newlib/libm/math/sf_sin.c +++ b/newlib/libm/math/sf_sin.c @@ -32,7 +32,7 @@ if(ix <= 0x3f490fd8) return __kernel_sinf(x,z,0); /* sin(Inf or NaN) is NaN */ - else if (ix>=0x7f800000) return x-x; + else if (!FLT_UWORD_IS_FINITE(ix)) return x-x; /* argument reduction needed */ else { -- cgit v1.2.3