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
b1230c34
Commit
b1230c34
authored
Jul 17, 2017
by
Alex Henrie
Committed by
Alexandre Julliard
Jul 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120: Set errno in log2.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
31b835d0
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 @
b1230c34
...
...
@@ -2488,6 +2488,8 @@ LDOUBLE CDECL MSVCR120_log1pl(LDOUBLE x)
*/
double
CDECL
MSVCR120_log2
(
double
x
)
{
if
(
x
<
0
)
*
MSVCRT__errno
()
=
MSVCRT_EDOM
;
else
if
(
x
==
0
)
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
#ifdef HAVE_LOG2
return
log2
(
x
);
#else
...
...
@@ -2500,6 +2502,8 @@ double CDECL MSVCR120_log2(double x)
*/
float
CDECL
MSVCR120_log2f
(
float
x
)
{
if
(
x
<
0
)
*
MSVCRT__errno
()
=
MSVCRT_EDOM
;
else
if
(
x
==
0
)
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
#ifdef HAVE_LOG2F
return
log2f
(
x
);
#else
...
...
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