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
593ddf0b
Commit
593ddf0b
authored
May 13, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
May 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120: Don't modify fenv_t members in math functions.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0f721c2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
math.c
dlls/msvcrt/math.c
+4
-22
No files found.
dlls/msvcrt/math.c
View file @
593ddf0b
...
...
@@ -4750,12 +4750,8 @@ double CDECL acosh(double x)
{
if
(
x
<
1
)
{
fenv_t
env
;
*
_errno
()
=
EDOM
;
fegetenv
(
&
env
);
env
.
_Fe_stat
|=
FE_INVALID
;
fesetenv
(
&
env
);
feraiseexcept
(
FE_INVALID
);
return
NAN
;
}
return
unix_funcs
->
acosh
(
x
);
...
...
@@ -4768,12 +4764,8 @@ float CDECL acoshf(float x)
{
if
(
x
<
1
)
{
fenv_t
env
;
*
_errno
()
=
EDOM
;
fegetenv
(
&
env
);
env
.
_Fe_stat
|=
FE_INVALID
;
fesetenv
(
&
env
);
feraiseexcept
(
FE_INVALID
);
return
NAN
;
}
return
unix_funcs
->
acoshf
(
x
);
...
...
@@ -4787,14 +4779,9 @@ double CDECL atanh(double x)
double
ret
;
if
(
x
>
1
||
x
<
-
1
)
{
fenv_t
env
;
*
_errno
()
=
EDOM
;
/* on Linux atanh returns -NAN in this case */
fegetenv
(
&
env
);
env
.
_Fe_stat
|=
FE_INVALID
;
fesetenv
(
&
env
);
feraiseexcept
(
FE_INVALID
);
return
NAN
;
}
ret
=
unix_funcs
->
atanh
(
x
);
...
...
@@ -4811,13 +4798,8 @@ float CDECL atanhf(float x)
float
ret
;
if
(
x
>
1
||
x
<
-
1
)
{
fenv_t
env
;
*
_errno
()
=
EDOM
;
fegetenv
(
&
env
);
env
.
_Fe_stat
|=
FE_INVALID
;
fesetenv
(
&
env
);
feraiseexcept
(
FE_INVALID
);
return
NAN
;
}
...
...
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