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
9165dbbf
Commit
9165dbbf
authored
Sep 01, 2015
by
Thomas Faber
Committed by
Alexandre Julliard
Sep 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Run test_thread_fpu_cw on x86 MSVC builds.
parent
615ef985
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
thread.c
dlls/kernel32/tests/thread.c
+11
-2
No files found.
dlls/kernel32/tests/thread.c
View file @
9165dbbf
...
...
@@ -1408,16 +1408,25 @@ static void test_ThreadErrorMode(void)
pSetThreadErrorMode
(
oldmode
,
NULL
);
}
#if
defined(__GNUC__) && (defined(__i386__) || defined(__x86_64
__))
#if
(defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))) || (defined(_MSC_VER) && defined(__i386
__))
static
inline
void
set_fpu_cw
(
WORD
cw
)
{
#ifdef _MSC_VER
__asm
{
fnclex
}
__asm
{
fldcw
[
cw
]
}
#else
__asm__
volatile
(
"fnclex; fldcw %0"
:
:
"m"
(
cw
));
#endif
}
static
inline
WORD
get_fpu_cw
(
void
)
{
WORD
cw
=
0
;
#ifdef _MSC_VER
__asm
{
fnstcw
[
cw
]
}
#else
__asm__
volatile
(
"fnstcw %0"
:
"=m"
(
cw
));
#endif
return
cw
;
}
...
...
@@ -1888,7 +1897,7 @@ START_TEST(thread)
test_RegisterWaitForSingleObject
();
test_TLS
();
test_ThreadErrorMode
();
#if
defined(__GNUC__) && (defined(__i386__) || defined(__x86_64
__))
#if
(defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))) || (defined(_MSC_VER) && defined(__i386
__))
test_thread_fpu_cw
();
#endif
test_thread_actctx
();
...
...
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