8a24a3fadae0b79a7a0bf1274edf9cdca7c9cf03
[reactos.git] / reactos / lib / crt / math / atan2.c
1
2 #include <math.h>
3
4 double atan2 (double __y, double __x);
5
6 /*
7 * @implemented
8 */
9 double atan2 (double __y, double __x)
10 {
11 register double __value;
12 #ifdef __GNUC__
13 __asm __volatile__
14 ("fpatan\n\t"
15 "fld %%st(0)"
16 : "=t" (__value) : "0" (__x), "u" (__y));
17 #else
18 __value = linkme_atan2(__x, __y);
19 #endif /*__GNUC__*/
20 return __value;
21 }