Last change
on this file since 466 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
627 bytes
|
Line | |
---|
1 | |
---|
2 | /* @(#)z_atan2f.c 1.0 98/08/13 */ |
---|
3 | /****************************************************************** |
---|
4 | * Arctangent2 |
---|
5 | * |
---|
6 | * Input: |
---|
7 | * v, u - floating point values |
---|
8 | * |
---|
9 | * Output: |
---|
10 | * arctan2 of v / u |
---|
11 | * |
---|
12 | * Description: |
---|
13 | * This routine returns the arctan2 of v / u. |
---|
14 | * |
---|
15 | *****************************************************************/ |
---|
16 | |
---|
17 | #include "fdlibm.h" |
---|
18 | #include "zmath.h" |
---|
19 | |
---|
20 | float |
---|
21 | atan2f (float v, |
---|
22 | float u) |
---|
23 | { |
---|
24 | return (atangentf (0.0, v, u, 1)); |
---|
25 | } |
---|
26 | |
---|
27 | #ifdef _DOUBLE_IS_32BITS |
---|
28 | double atan2 (double v, double u) |
---|
29 | { |
---|
30 | return (double) atangentf (0.0, (float) v, (float) u, 1); |
---|
31 | } |
---|
32 | |
---|
33 | #endif /* defined(_DOUBLE_IS_32BITS) */ |
---|
Note: See
TracBrowser
for help on using the repository browser.