about summary refs log tree commit diff
path: root/src/complex/cpowl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cpowl.c')
-rw-r--r--src/complex/cpowl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/complex/cpowl.c b/src/complex/cpowl.c
new file mode 100644
index 00000000..c1a80a7b
--- /dev/null
+++ b/src/complex/cpowl.c
@@ -0,0 +1,13 @@
+#include "libm.h"
+
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
+long double complex cpowl(long double complex z, long double complex c)
+{
+	return cpow(z, c);
+}
+#else
+long double complex cpowl(long double complex z, long double complex c)
+{
+	return cexpl(c * clogl(z));
+}
+#endif