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
85da8da3
Commit
85da8da3
authored
Jun 02, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use __scalbn helper in ldexp implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
135ae49f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
13 deletions
+1
-13
math.c
dlls/msvcrt/math.c
+1
-3
unixlib.c
dlls/msvcrt/unixlib.c
+0
-9
unixlib.h
dlls/msvcrt/unixlib.h
+0
-1
No files found.
dlls/msvcrt/math.c
View file @
85da8da3
...
...
@@ -3472,14 +3472,12 @@ int * CDECL __fpecode(void)
*/
double
CDECL
ldexp
(
double
num
,
int
exp
)
{
double
z
=
unix_funcs
->
ldexp
(
num
,
exp
);
double
z
=
__scalbn
(
num
,
exp
);
if
(
isfinite
(
num
)
&&
!
isfinite
(
z
))
return
math_error
(
_OVERFLOW
,
"ldexp"
,
num
,
exp
,
z
);
if
(
num
&&
isfinite
(
num
)
&&
!
z
)
return
math_error
(
_UNDERFLOW
,
"ldexp"
,
num
,
exp
,
z
);
if
(
z
==
0
&&
signbit
(
z
))
z
=
0
.
0
;
/* Convert -0 -> +0 */
return
z
;
}
...
...
dlls/msvcrt/unixlib.c
View file @
85da8da3
...
...
@@ -139,14 +139,6 @@ static float CDECL unix_hypotf(float x, float y)
}
/*********************************************************************
* ldexp
*/
static
double
CDECL
unix_ldexp
(
double
num
,
int
exp
)
{
return
ldexp
(
num
,
exp
);
}
/*********************************************************************
* lgamma
*/
static
double
CDECL
unix_lgamma
(
double
x
)
...
...
@@ -306,7 +298,6 @@ static const struct unix_funcs funcs =
unix_frexpf
,
unix_hypot
,
unix_hypotf
,
unix_ldexp
,
unix_lgamma
,
unix_lgammaf
,
unix_log
,
...
...
dlls/msvcrt/unixlib.h
View file @
85da8da3
...
...
@@ -33,7 +33,6 @@ struct unix_funcs
float
(
CDECL
*
frexpf
)(
float
x
,
int
*
exp
);
double
(
CDECL
*
hypot
)(
double
x
,
double
y
);
float
(
CDECL
*
hypotf
)(
float
x
,
float
y
);
double
(
CDECL
*
ldexp
)(
double
x
,
int
exp
);
double
(
CDECL
*
lgamma
)(
double
x
);
float
(
CDECL
*
lgammaf
)(
float
x
);
double
(
CDECL
*
log
)(
double
x
);
...
...
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