Cygwin: //: fetch only one item per loop
[newlib-cygwin.git] / newlib / libm / complex / conjf.c
blobf6a95224a1db512090b80ce5d5137c7aa42a9738
1 /* $NetBSD: conjf.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 complex
15 conjf(float complex z)
17 float_complex w = { .z = z };
19 IMAG_PART(w) = -IMAG_PART(w);
21 return (w.z);