Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / complex / crealf.c
blobb5bf31ce6c05181a9239b967ae911d6ae0445630
1 /* $NetBSD: crealf.c,v 1.2 2010/09/15 16:11:29 christos Exp $ */
3 /*
4 * Written by Matthias Drochner <drochner@NetBSD.org>.
5 * Public domain.
7 * imported and modified include for newlib 2010/10/03
8 * Marco Atzeri <marco_atzeri@yahoo.it>
9 */
11 #include <complex.h>
12 #include "../common/fdlibm.h"
14 float
15 crealf(float complex z)
17 float_complex w = { .z = z };
19 return (REAL_PART(w));