Author: gbrunmar
Date: Sat Aug 22 12:07:25 2009
New Revision: 42841
URL:
http://svn.reactos.org/svn/reactos?rev=42841&view=rev
Log:
- Implemented MSVC version of atan2
Modified:
trunk/reactos/lib/sdk/crt/math/i386/atan2.c
Modified: trunk/reactos/lib/sdk/crt/math/i386/atan2.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/i386/atan…
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/i386/atan2.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/math/i386/atan2.c [iso-8859-1] Sat Aug 22 12:07:25 2009
@@ -15,7 +15,13 @@
"fld %%st(0)"
: "=t" (__val) : "0" (__x), "u" (__y));
#else
-#error IMPLEMENT ME
+ __asm
+ {
+ fld __y
+ fld __x
+ fpatan
+ fstp __val
+ }
#endif /*__GNUC__*/
return __val;
}