Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cargl.c « complex « libm « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 790cffe8f2c7c8db94293fce8e1fdfe2af47e8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* $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
}