diff options
Diffstat (limited to 'math/s_ccosl.c')
-rw-r--r-- | math/s_ccosl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/math/s_ccosl.c b/math/s_ccosl.c index 4ebe2c3..9902a02 100644 --- a/math/s_ccosl.c +++ b/math/s_ccosl.c @@ -1,5 +1,5 @@ /* Return cosine of complex long double value. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -21,6 +21,7 @@ #include <complex.h> #include <fenv.h> #include <math.h> +#include <math_private.h> __complex__ long double @@ -36,17 +37,17 @@ __ccosl (__complex__ long double x) __imag__ res = 0.0; #ifdef FE_INVALID - if (__isinfl (__real__ x)) + if (__isinf_nsl (__real__ x)) feraiseexcept (FE_INVALID); #endif } - else if (__isinfl (__imag__ x)) + else if (__isinf_nsl (__imag__ x)) { __real__ res = HUGE_VALL; __imag__ res = __nanl (""); #ifdef FE_INVALID - if (__isinfl (__real__ x)) + if (__isinf_nsl (__real__ x)) feraiseexcept (FE_INVALID); #endif } |