about summary refs log tree commit diff
path: root/src/complex/conjf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/conjf.c')
-rw-r--r--src/complex/conjf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/complex/conjf.c b/src/complex/conjf.c
new file mode 100644
index 00000000..31556800
--- /dev/null
+++ b/src/complex/conjf.c
@@ -0,0 +1,6 @@
+#include "libm.h"
+
+float complex conjf(float complex z)
+{
+	return cpackf(crealf(z), -cimagf(z));
+}