mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
- Implemented MSVC version of fmod
svn path=/trunk/; revision=42844
This commit is contained in:
parent
ecc5d7ef19
commit
e85cc27f88
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue