mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-27 20:30:31 +00:00
19 lines
310 B
C
19 lines
310 B
C
/* $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));
|
|
#endif
|
|
}
|