* Bring back rbuild build to be used until bug 6372 is fixed.
[reactos.git] / lib / sdk / crt / math / i386 / 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 __val;
12 #ifdef __GNUC__
13 __asm __volatile__
14 ("fpatan\n\t"
15 "fld %%st(0)"
16 : "=t" (__val) : "0" (__x), "u" (__y));
17 #else
18 __asm
19 {
20 fld __y
21 fld __x
22 fpatan
23 fstp __val
24 }
25 #endif /*__GNUC__*/
26 return __val;
27 }