diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-09-27 14:43:20 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 23:38:28 +0000 |
commit | 36154934f5c0472b324f9054bee95af4b9bd94a7 (patch) | |
tree | 428bd45d0ad764da6c5f7e0a749601ded3d02cd0 /src/sys/sys_win32.c | |
parent | ed1e20af481fd6fdb5dc8d1dc025586e4bf59129 (diff) |
Set default rounding mode to FE_NEAREST again. Thanks to Matthias Bentrup for providing some explanations.
Diffstat (limited to 'src/sys/sys_win32.c')
-rw-r--r-- | src/sys/sys_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/sys_win32.c b/src/sys/sys_win32.c index 2988d83c..25e18424 100644 --- a/src/sys/sys_win32.c +++ b/src/sys/sys_win32.c @@ -61,14 +61,14 @@ Set FPU control word to default value #define _MCW_EM 0x0008001fU #define _MCW_RC 0x00000300U #define _MCW_PC 0x00030000U - #define _RC_CHOP 0x00000300U + #define _RC_NEAR 0x00000000U #define _PC_53 0x00010000U unsigned int _controlfp(unsigned int new, unsigned int mask); #endif #define FPUCWMASK1 (_MCW_RC | _MCW_EM) -#define FPUCW (_RC_CHOP | _MCW_EM | _PC_53) +#define FPUCW (_RC_NEAR | _MCW_EM | _PC_53) #if idx64 #define FPUCWMASK (FPUCWMASK1) |