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
67c7c403
Commit
67c7c403
authored
Jul 21, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't set x87 control word in x86_64 fesetenv.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5189d73b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
math.c
dlls/msvcrt/math.c
+4
-0
No files found.
dlls/msvcrt/math.c
View file @
67c7c403
...
...
@@ -5873,6 +5873,7 @@ int CDECL fesetenv(const fenv_t *env)
{
#if (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))
unsigned
int
x87_cw
,
sse_cw
,
x87_stat
,
sse_stat
;
#ifdef __i386__
struct
{
WORD
control_word
;
WORD
unused1
;
...
...
@@ -5887,6 +5888,7 @@ int CDECL fesetenv(const fenv_t *env)
WORD
data_segment
;
WORD
unused5
;
}
fenv
;
#endif
TRACE
(
"(%p)
\n
"
,
env
);
...
...
@@ -5900,6 +5902,7 @@ int CDECL fesetenv(const fenv_t *env)
if
(
!
fenv_decode
(
env
->
_Fe_stat
,
&
x87_stat
,
&
sse_stat
))
return
1
;
#ifdef __i386__
__asm__
__volatile__
(
"fnstenv %0"
:
"=m"
(
fenv
)
);
fenv
.
control_word
&=
~
0xc3d
;
...
...
@@ -5938,6 +5941,7 @@ int CDECL fesetenv(const fenv_t *env)
__asm__
__volatile__
(
"fldenv %0"
:
:
"m"
(
fenv
)
:
"st"
,
"st(1)"
,
"st(2)"
,
"st(3)"
,
"st(4)"
,
"st(5)"
,
"st(6)"
,
"st(7)"
);
#endif
if
(
sse2_supported
)
{
...
...
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