Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / complex / cimagf.c
blob20077ee16c69f1c62589d34f49b5c34ced0b3f70
1 /* $NetBSD: cimagf.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 cimagf(float complex z)
17 float_complex w = { .z = z };
19 return (IMAG_PART(w));