Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1ae23af8
Commit
1ae23af8
authored
Nov 26, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/msvcrt: Define more CPU control word flags.
parent
fa2b7066
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
10 deletions
+31
-10
msvcrt.h
dlls/msvcrt/msvcrt.h
+11
-0
headers.c
dlls/msvcrt/tests/headers.c
+10
-2
float.h
include/msvcrt/float.h
+10
-8
No files found.
dlls/msvcrt/msvcrt.h
View file @
1ae23af8
...
...
@@ -653,6 +653,12 @@ struct MSVCRT__stat64 {
#define MSVCRT__FPCLASS_PN 0x0100
/* Positive Normal */
#define MSVCRT__FPCLASS_PINF 0x0200
/* Positive Infinity */
#define MSVCRT__MCW_EM 0x0008001f
#define MSVCRT__MCW_IC 0x00040000
#define MSVCRT__MCW_RC 0x00000300
#define MSVCRT__MCW_PC 0x00030000
#define MSVCRT__MCW_DN 0x03000000
#define MSVCRT__EM_INVALID 0x00000010
#define MSVCRT__EM_DENORMAL 0x00080000
#define MSVCRT__EM_ZERODIVIDE 0x00000008
...
...
@@ -668,6 +674,11 @@ struct MSVCRT__stat64 {
#define MSVCRT__PC_24 0x00020000
#define MSVCRT__PC_53 0x00010000
#define MSVCRT__PC_64 0x00000000
#define MSVCRT__DN_SAVE 0x00000000
#define MSVCRT__DN_FLUSH 0x01000000
#define MSVCRT__DN_FLUSH_OPERANDS_SAVE_RESULTS 0x02000000
#define MSVCRT__DN_SAVE_OPERANDS_FLUSH_RESULTS 0x03000000
#define MSVCRT__EM_AMBIGUOUS 0x80000000
#define MSVCRT_CLOCKS_PER_SEC 1000
...
...
dlls/msvcrt/tests/headers.c
View file @
1ae23af8
...
...
@@ -425,7 +425,11 @@ static void test_defines(void)
CHECK_DEF
(
_FPE_STACKOVERFLOW
);
CHECK_DEF
(
_FPE_STACKUNDERFLOW
);
CHECK_DEF
(
_FPE_EXPLICITGEN
);
#ifdef __i386__
CHECK_DEF
(
_MCW_EM
);
CHECK_DEF
(
_MCW_IC
);
CHECK_DEF
(
_MCW_RC
);
CHECK_DEF
(
_MCW_PC
);
CHECK_DEF
(
_MCW_DN
);
CHECK_DEF
(
_EM_INVALID
);
CHECK_DEF
(
_EM_DENORMAL
);
CHECK_DEF
(
_EM_ZERODIVIDE
);
...
...
@@ -441,7 +445,11 @@ static void test_defines(void)
CHECK_DEF
(
_PC_24
);
CHECK_DEF
(
_PC_53
);
CHECK_DEF
(
_PC_64
);
#endif
CHECK_DEF
(
_DN_SAVE
);
CHECK_DEF
(
_DN_FLUSH
);
CHECK_DEF
(
_DN_FLUSH_OPERANDS_SAVE_RESULTS
);
CHECK_DEF
(
_DN_SAVE_OPERANDS_FLUSH_RESULTS
);
CHECK_DEF
(
_EM_AMBIGUOUS
);
}
#endif
/* __WINE_USE_MSVCRT */
...
...
include/msvcrt/float.h
View file @
1ae23af8
...
...
@@ -60,14 +60,12 @@ extern "C" {
#define LDBL_RADIX _LDBL_RADIX
#define LDBL_ROUNDS _LDBL_ROUNDS
/* _controlfp masks and bitflags - x86 only so far */
#ifdef __i386__
/* Control word masks for unMask */
#define _MCW_EM 0x0008001F
/* Error masks */
#define _MCW_IC 0x00040000
/* Infinity */
#define _MCW_RC 0x00000300
/* Rounding */
#define _MCW_PC 0x00030000
/* Precision */
#define _MCW_EM 0x0008001f
#define _MCW_IC 0x00040000
#define _MCW_RC 0x00000300
#define _MCW_PC 0x00030000
#define _MCW_DN 0x03000000
/* Control word values for unNew (use with related unMask above) */
#define _EM_INVALID 0x00000010
...
...
@@ -85,7 +83,11 @@ extern "C" {
#define _PC_24 0x00020000
#define _PC_53 0x00010000
#define _PC_64 0x00000000
#endif
#define _DN_SAVE 0x00000000
#define _DN_FLUSH 0x01000000
#define _DN_FLUSH_OPERANDS_SAVE_RESULTS 0x02000000
#define _DN_SAVE_OPERANDS_FLUSH_RESULTS 0x03000000
#define _EM_AMBIGUOUS 0x80000000
/* _statusfp bit flags */
#define _SW_INEXACT 0x00000001
/* inexact (precision) */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment