Author: gbrunmar
Date: Sat Aug 22 15:21:01 2009
New Revision: 42844
URL:
http://svn.reactos.org/svn/reactos?rev=42844&view=rev
Log:
- Implemented MSVC version of fmod
Modified:
trunk/reactos/lib/sdk/crt/math/i386/fmod.c
Modified: trunk/reactos/lib/sdk/crt/math/i386/fmod.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/i386/fmod…
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/i386/fmod.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/math/i386/fmod.c [iso-8859-1] Sat Aug 22 15:21:01 2009
@@ -33,7 +33,16 @@
"jp 1b"
: "=t" (__val) : "0" (__x), "u" (__y) :
"ax", "cc");
#else
-#error IMPLEMENT ME
+ __asm
+ {
+ fld __y
+ fld __x
+L1: fprem1
+ fstsw ax
+ sahf
+ jp L1
+ fstp __val
+ }
#endif /*__GNUC__*/
return __val;
}