about summary refs log tree commit diff
path: root/math/s_cpow_template.c
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-06-28 14:28:04 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-08-29 12:43:38 -0500
commitfeb62ddacb7b1d772d7383de0228a3977f07fc1e (patch)
tree963280635eb242a98f191744c196d55fadc2550f /math/s_cpow_template.c
parent1dbc54f61e281d3f2c1712dadd12864c42f8a64a (diff)
downloadglibc-feb62ddacb7b1d772d7383de0228a3977f07fc1e.tar.gz
glibc-feb62ddacb7b1d772d7383de0228a3977f07fc1e.tar.xz
glibc-feb62ddacb7b1d772d7383de0228a3977f07fc1e.zip
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.
Diffstat (limited to 'math/s_cpow_template.c')
-rw-r--r--math/s_cpow_template.c18
1 files changed, 9 insertions, 9 deletions
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 <drepper@cygnus.com>, 1997.
@@ -20,14 +20,14 @@
 #include <complex.h>
 #include <math.h>
 
-
-__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