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
e1d92059
Commit
e1d92059
authored
Sep 24, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Implement FPUSETUP for msvc.
parent
35f2e91f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
device.c
dlls/d3d9/device.c
+5
-0
device.c
dlls/d3d9/tests/device.c
+10
-1
No files found.
dlls/d3d9/device.c
View file @
e1d92059
...
...
@@ -3306,6 +3306,11 @@ static void setup_fpu(void)
__asm__
volatile
(
"fnstcw %0"
:
"=m"
(
cw
));
cw
=
(
cw
&
~
0xf3f
)
|
0x3f
;
__asm__
volatile
(
"fldcw %0"
:
:
"m"
(
cw
));
#elif defined(__i386__) && defined(_MSC_VER)
WORD
cw
;
__asm
fnstcw
cw
;
cw
=
(
cw
&
~
0xf3f
)
|
0x3f
;
__asm
fldcw
cw
;
#else
FIXME
(
"FPU setup not implemented for this platform.
\n
"
);
#endif
...
...
dlls/d3d9/tests/device.c
View file @
e1d92059
...
...
@@ -2913,8 +2913,13 @@ cleanup:
static
inline
void
set_fpu_cw
(
WORD
cw
)
{
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
#define D3D9_TEST_SET_FPU_CW 1
__asm__
volatile
(
"fnclex"
);
__asm__
volatile
(
"fldcw %0"
:
:
"m"
(
cw
));
#elif defined(__i386__) && defined(_MSC_VER)
#define D3D9_TEST_SET_FPU_CW 1
__asm
fnclex
;
__asm
fldcw
cw
;
#endif
}
...
...
@@ -2922,14 +2927,18 @@ static inline WORD get_fpu_cw(void)
{
WORD
cw
=
0
;
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
#define D3D9_TEST_GET_FPU_CW 1
__asm__
volatile
(
"fnstcw %0"
:
"=m"
(
cw
));
#elif defined(__i386__) && defined(_MSC_VER)
#define D3D9_TEST_GET_FPU_CW 1
__asm
fnstcw
cw
;
#endif
return
cw
;
}
static
void
test_fpu_setup
(
void
)
{
#if defined(
__GNUC__) && (defined(__i386__) || defined(__x86_64__)
)
#if defined(
D3D9_TEST_SET_FPU_CW) && defined(D3D9_TEST_GET_FPU_CW
)
D3DPRESENT_PARAMETERS
present_parameters
;
IDirect3DDevice9
*
device
;
HWND
window
=
NULL
;
...
...
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