From feb62ddacb7b1d772d7383de0228a3977f07fc1e Mon Sep 17 00:00:00 2001 From: "Paul E. Murphy" Date: Tue, 28 Jun 2016 14:28:04 -0500 Subject: Convert remaining complex function to generated files Convert cpow, clog, clog10, cexp, csqrt, and cproj functions into generated templates. Note, ldbl-opt still retains s_clog10l.c as the aliasing rules are non-trivial. --- math/s_cpow_template.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'math/s_cpow_template.c') diff --git a/math/s_cpow_template.c b/math/s_cpow_template.c index 037e575b1a..12dfc92c23 100644 --- a/math/s_cpow_template.c +++ b/math/s_cpow_template.c @@ -1,4 +1,4 @@ -/* Complex power of double values. +/* Complex power of float type. Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -20,14 +20,14 @@ #include #include - -__complex__ double -__cpow (__complex__ double x, __complex__ double c) +CFLOAT +M_DECL_FUNC (__cpow) (CFLOAT x, CFLOAT c) { - return __cexp (c * __clog (x)); + return M_SUF (__cexp) (c * M_SUF (__clog) (x)); } -weak_alias (__cpow, cpow) -#ifdef NO_LONG_DOUBLE -strong_alias (__cpow, __cpowl) -weak_alias (__cpow, cpowl) + +declare_mgen_alias (__cpow, cpow) + +#if M_LIBM_NEED_COMPAT (cpow) +declare_mgen_libm_compat (__cpow, cpow) #endif -- cgit v1.2.3