Added binary and unicode file i/o support to msvcrt.
[reactos.git] / reactos / lib / crtdll / math / floor.c
index 7403a52..b799387 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <msvcrt/math.h>
 
 double floor (double __x);
 
 double floor (double __x)
 {
   register double __value;
+#ifdef __GNUC__
   __volatile unsigned short int __cw, __cwtmp;
 
   __asm __volatile ("fnstcw %0" : "=m" (__cw));
@@ -31,7 +33,9 @@ double floor (double __x)
   __asm __volatile ("fldcw %0" : : "m" (__cwtmp));
   __asm __volatile ("frndint" : "=t" (__value) : "0" (__x));
   __asm __volatile ("fldcw %0" : : "m" (__cw));
-
+#else
+  __value = linkme_floor(__x);
+#endif /*__GNUC__*/
   return __value;
 }