diff options
Diffstat (limited to 'math/s_ccos_template.c')
-rw-r--r-- | math/s_ccos_template.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/math/s_ccos_template.c b/math/s_ccos_template.c index e484551aee..becaa2d27c 100644 --- a/math/s_ccos_template.c +++ b/math/s_ccos_template.c @@ -1,4 +1,4 @@ -/* Return cosine of complex double value. +/* Return cosine of complex float type. Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -22,19 +22,19 @@ #include <math.h> #include <math_private.h> - -__complex__ double -__ccos (__complex__ double x) +CFLOAT +M_DECL_FUNC (__ccos) (CFLOAT x) { - __complex__ double y; + CFLOAT y; __real__ y = -__imag__ x; __imag__ y = __real__ x; - return __ccosh (y); + return M_SUF (__ccosh) (y); } -weak_alias (__ccos, ccos) -#ifdef NO_LONG_DOUBLE -strong_alias (__ccos, __ccosl) -weak_alias (__ccos, ccosl) + +declare_mgen_alias (__ccos, ccos); + +#if M_LIBM_NEED_COMPAT (carg) +declare_mgen_libm_compat (__ccos, ccos) #endif |