From e85cc27f88330b4a65dd18c1bc75f1b3871ef0ba Mon Sep 17 00:00:00 2001 From: Gregor Brunmar Date: Sat, 22 Aug 2009 13:21:01 +0000 Subject: [PATCH] - Implemented MSVC version of fmod svn path=/trunk/; revision=42844 --- reactos/lib/sdk/crt/math/i386/fmod.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/reactos/lib/sdk/crt/math/i386/fmod.c b/reactos/lib/sdk/crt/math/i386/fmod.c index b724d48fbe2..472f75f0705 100644 --- a/reactos/lib/sdk/crt/math/i386/fmod.c +++ b/reactos/lib/sdk/crt/math/i386/fmod.c @@ -33,7 +33,16 @@ double fmod (double __x, double __y) "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; }