Last change
on this file since 567 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
310 bytes
|
Line | |
---|
1 | /* $NetBSD: cargl.c,v 1.1 2014/10/10 00:48:18 christos Exp $ */ |
---|
2 | |
---|
3 | /* |
---|
4 | * Public domain. |
---|
5 | */ |
---|
6 | |
---|
7 | #include <complex.h> |
---|
8 | #include <math.h> |
---|
9 | |
---|
10 | long double |
---|
11 | cargl(long double complex z) |
---|
12 | { |
---|
13 | #ifdef _LDBL_EQ_DBL |
---|
14 | return carg (z); |
---|
15 | #else |
---|
16 | return atan2l (cimagl (z), creall (z)); |
---|
17 | #endif |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.