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