extend cmath (some of the functions are dummy)
[libm] / src / cmath / cpowl.c
diff --git a/src/cmath/cpowl.c b/src/cmath/cpowl.c
new file mode 100644 (file)
index 0000000..c1a80a7
--- /dev/null
@@ -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