Author: hyperion Date: Wed Oct 29 08:04:45 2008 New Revision: 37052
URL: http://svn.reactos.org/svn/reactos?rev=37052&view=rev Log: modified math/i386/ci.c Translate inline assembler to Visual C++ syntax
modified string/ctype.c MinGW headers define towlower/towupper as taking & returning wint_t
Modified: branches/the-real-msvc/lib/sdk/crt/math/i386/ci.c branches/the-real-msvc/lib/sdk/crt/string/ctype.c
Modified: branches/the-real-msvc/lib/sdk/crt/math/i386/ci.c URL: http://svn.reactos.org/svn/reactos/branches/the-real-msvc/lib/sdk/crt/math/i... ============================================================================== --- branches/the-real-msvc/lib/sdk/crt/math/i386/ci.c [iso-8859-1] (original) +++ branches/the-real-msvc/lib/sdk/crt/math/i386/ci.c [iso-8859-1] Wed Oct 29 08:04:45 2008 @@ -1,11 +1,19 @@ #include <precomp.h> #include <math.h>
+#if defined(__GNUC__) #define FPU_DOUBLE(var) double var; \ __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var) : ) #define FPU_DOUBLES(var1,var2) double var1,var2; \ __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var2) : ); \ __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var1) : ) +#elif defined(_MSC_VER) +#define FPU_DOUBLE(var) double var; \ + __asm { fstp [var] }; __asm { fwait }; +#define FPU_DOUBLES(var1,var2) double var1,var2; \ + __asm { fstp [var1] }; __asm { fwait }; \ + __asm { fstp [var2] }; __asm { fwait }; +#endif
/* * @implemented
Modified: branches/the-real-msvc/lib/sdk/crt/string/ctype.c URL: http://svn.reactos.org/svn/reactos/branches/the-real-msvc/lib/sdk/crt/string... ============================================================================== --- branches/the-real-msvc/lib/sdk/crt/string/ctype.c [iso-8859-1] (original) +++ branches/the-real-msvc/lib/sdk/crt/string/ctype.c [iso-8859-1] Wed Oct 29 08:04:45 2008 @@ -591,7 +591,7 @@ /* * @implemented */ -wchar_t towlower(wchar_t c) +wint_t towlower(wint_t c) { if (iswctype (c, _UPPER)) return (c - upalpha); @@ -601,7 +601,7 @@ /* * @implemented */ -wchar_t towupper(wchar_t c) +wint_t towupper(wint_t c) { if (iswctype (c, _LOWER)) return (c + upalpha);