summaryrefslogtreecommitdiffstats
path: root/newlib/libm/complex/conj.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/complex/conj.c')
-rw-r--r--newlib/libm/complex/conj.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/newlib/libm/complex/conj.c b/newlib/libm/complex/conj.c
index 9d9fb7776..dc50f085c 100644
--- a/newlib/libm/complex/conj.c
+++ b/newlib/libm/complex/conj.c
@@ -8,6 +8,39 @@
* Marco Atzeri <marco_atzeri@yahoo.it>
*/
+/*
+FUNCTION
+ <<conj>>, <<conjf>>---complex conjugate
+
+INDEX
+ conj
+INDEX
+ conjf
+
+ANSI_SYNOPSIS
+ #include <complex.h>
+ double complex conj(double complex <[z]>);
+ float complex conjf(float complex <[z]>);
+
+
+DESCRIPTION
+ These functions compute the complex conjugate of <[z]>,
+ by reversing the sign of its imaginary part.
+
+ <<conjf>> is identical to <<conj>>, except that it performs
+ its calculations on <<floats complex>>.
+
+RETURNS
+ The conj functions return the complex conjugate value.
+
+PORTABILITY
+ <<conj>> and <<conjf>> are ISO C99
+
+QUICKREF
+ <<conj>> and <<conjf>> are ISO C99
+
+*/
+
#include <complex.h>
#include "../common/fdlibm.h"