4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 02:09:19 +08:00

19 lines
310 B
C
Raw Normal View History

2017-06-29 01:30:47 +05:30
/* $NetBSD: cargl.c,v 1.1 2014/10/10 00:48:18 christos Exp $ */
/*
* Public domain.
*/
#include <complex.h>
#include <math.h>
long double
cargl(long double complex z)
{
#ifdef _LDBL_EQ_DBL
return carg (z);
#else
return atan2l (cimagl (z), creall (z));
2017-06-29 01:30:47 +05:30
#endif
}