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
branch update for HEAD-2003021201
[reactos.git]
/
lib
/
crtdll
/
float
/
cntrlfp.c
diff --git
a/lib/crtdll/float/cntrlfp.c
b/lib/crtdll/float/cntrlfp.c
index
2ebdb0a
..
0019f84
100644
(file)
--- a/
lib/crtdll/float/cntrlfp.c
+++ b/
lib/crtdll/float/cntrlfp.c
@@
-1,6
+1,6
@@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
-#include <
crtdll
/float.h>
+#include <
msvcrt
/float.h>
unsigned int _controlfp (unsigned int unNew, unsigned int unMask)
{
unsigned int _controlfp (unsigned int unNew, unsigned int unMask)
{
@@
-9,8
+9,8
@@
unsigned int _controlfp (unsigned int unNew, unsigned int unMask)
unsigned int _control87 (unsigned int unNew, unsigned int unMask)
{
unsigned int _control87 (unsigned int unNew, unsigned int unMask)
{
-
register unsigned int __res;
register unsigned int __res;
+#ifdef __GNUC__
__asm__ __volatile__ (
"pushl %%eax \n\t" /* make room on stack */
"fstcw (%%esp) \n\t"
__asm__ __volatile__ (
"pushl %%eax \n\t" /* make room on stack */
"fstcw (%%esp) \n\t"
@@
-30,9
+30,8
@@
__asm__ __volatile__ (
"fldcw (%%esp) \n\t"
"popl %%edx \n\t"
"fldcw (%%esp) \n\t"
"popl %%edx \n\t"
-
:"=r" (__res):"r" (unNew),"r" (unMask): "ax", "dx", "cx");
:"=r" (__res):"r" (unNew),"r" (unMask): "ax", "dx", "cx");
-/* :"=a" (__res):"c" (unNew),"d" (unMask):"ax", "dx", "cx"); */
-
+#else
+#endif /*__GNUC__*/
return __res;
}
return __res;
}