From 92705a48dceabfac11e4f42bb4109dc55e7a06c5 Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Mon, 29 Nov 2010 06:07:18 -0600 Subject: [PATCH] msvcrt: Add some definitions and prototypes to float.h. --- include/msvcrt/float.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/msvcrt/float.h b/include/msvcrt/float.h index 270e1756269..33ebb689eec 100644 --- a/include/msvcrt/float.h +++ b/include/msvcrt/float.h @@ -128,6 +128,16 @@ extern "C" { #define _FPE_STACKUNDERFLOW 0x8b #define _FPE_EXPLICITGEN 0x8c +#if defined(__i386__) +#define _CW_DEFAULT (_RC_NEAR + _PC_53 + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL) +#elif defined(__x86_64__) +#define _CW_DEFAULT (_RC_NEAR + _PC_64 + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL) +#endif + +unsigned int __cdecl _control87(unsigned int, unsigned int); +unsigned int __cdecl _controlfp(unsigned int, unsigned int); +errno_t __cdecl _controlfp_s(unsigned int *, unsigned int, unsigned int); + double __cdecl _copysign (double, double); double __cdecl _chgsign (double); double __cdecl _scalb(double, __msvcrt_long);