git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for HEAD-2003021201
[reactos.git]
/
lib
/
crtdll
/
math
/
atan2.c
diff --git
a/lib/crtdll/math/atan2.c
b/lib/crtdll/math/atan2.c
index
f23be33
..
28079d0
100644
(file)
--- a/
lib/crtdll/math/atan2.c
+++ b/
lib/crtdll/math/atan2.c
@@
-1,12
+1,18
@@
+
+#include <msvcrt/math.h>
+
double atan2 (double __y, double __x);
double atan2 (double __y, double __x)
{
register double __value;
double atan2 (double __y, double __x);
double atan2 (double __y, double __x)
{
register double __value;
+#ifdef __GNUC__
__asm __volatile__
("fpatan\n\t"
"fld %%st(0)"
: "=t" (__value) : "0" (__x), "u" (__y));
__asm __volatile__
("fpatan\n\t"
"fld %%st(0)"
: "=t" (__value) : "0" (__x), "u" (__y));
-
+#else
+ __value = linkme_atan2(__x, __y);
+#endif /*__GNUC__*/
return __value;
}
return __value;
}