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