4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-13 12:39:22 +08:00
Pietro Monteiro 1ed1516136 newlib: libm: skip "long double" complex functions if long double != double
The rest of "long double" functions aren't compiled with long double
and double are not the same.  Do the same for all complex functions.

Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
2024-06-06 13:19:06 -04:00

18 lines
289 B
C

/* $NetBSD: cargl.c,v 1.1 2014/10/10 00:48:18 christos Exp $ */
/*
* Public domain.
*/
#include <complex.h>
#include <math.h>
/* On platforms where long double is as wide as double. */
#ifdef _LDBL_EQ_DBL
long double
cargl(long double complex z)
{
return carg (z);
}
#endif