2010-09-15 20:11:28 +04:00
|
|
|
/* $NetBSD: crealf.c,v 1.2 2010/09/15 16:11:29 christos Exp $ */
|
2007-08-20 20:01:28 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Written by Matthias Drochner <drochner@NetBSD.org>.
|
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <complex.h>
|
2010-09-15 20:11:28 +04:00
|
|
|
#include "../src/math_private.h"
|
2007-08-20 20:01:28 +04:00
|
|
|
|
|
|
|
float
|
|
|
|
crealf(float complex z)
|
|
|
|
{
|
2010-09-15 20:11:28 +04:00
|
|
|
float_complex w = { .z = z };
|
2007-08-20 20:01:28 +04:00
|
|
|
|
2010-09-15 20:11:28 +04:00
|
|
|
return (REAL_PART(w));
|
2007-08-20 20:01:28 +04:00
|
|
|
}
|