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
17174db6
Commit
17174db6
authored
May 25, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
May 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Import asinhf implementation from musl.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bc9105e2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
20 deletions
+18
-20
configure
configure
+0
-1
configure.ac
configure.ac
+0
-1
math.c
dlls/msvcrt/math.c
+18
-1
unixlib.c
dlls/msvcrt/unixlib.c
+0
-13
unixlib.h
dlls/msvcrt/unixlib.h
+0
-1
config.h.in
include/config.h.in
+0
-3
No files found.
configure
View file @
17174db6
...
...
@@ -19617,7 +19617,6 @@ fi
for
ac_func
in
\
asinh
\
asinhf
\
atanh
\
atanhf
\
exp2
\
...
...
configure.ac
View file @
17174db6
...
...
@@ -2657,7 +2657,6 @@ fi
AC_CHECK_FUNCS(\
asinh \
asinhf \
atanh \
atanhf \
exp2 \
...
...
dlls/msvcrt/math.c
View file @
17174db6
...
...
@@ -6577,10 +6577,27 @@ double CDECL asinh(double x)
/*********************************************************************
* asinhf (MSVCR120.@)
*
* Copied from musl: src/math/asinhf.c
*/
float
CDECL
asinhf
(
float
x
)
{
return
unix_funcs
->
asinhf
(
x
);
UINT32
ux
=
*
(
UINT32
*
)
&
x
;
UINT32
i
=
ux
&
0x7fffffff
;
int
s
=
ux
>>
31
;
/* |x| */
x
=
*
(
float
*
)
&
i
;
if
(
i
>=
0x3f800000
+
(
12
<<
23
))
/* |x| >= 0x1p12 or inf or nan */
x
=
logf
(
x
)
+
0
.
693147180559945309417232121458176568
f
;
else
if
(
i
>=
0x3f800000
+
(
1
<<
23
))
/* |x| >= 2 */
x
=
logf
(
2
*
x
+
1
/
(
sqrtf
(
x
*
x
+
1
)
+
x
));
else
if
(
i
>=
0x3f800000
-
(
12
<<
23
))
/* |x| >= 0x1p-12 */
x
=
log1pf
(
x
+
x
*
x
/
(
sqrtf
(
x
*
x
+
1
)
+
1
));
else
/* |x| < 0x1p-12, raise inexact if x!=0 */
fp_barrierf
(
x
+
0x1
p120f
);
return
s
?
-
x
:
x
;
}
/*********************************************************************
...
...
dlls/msvcrt/unixlib.c
View file @
17174db6
...
...
@@ -60,18 +60,6 @@ static double CDECL unix_asinh(double x)
}
/*********************************************************************
* asinhf
*/
static
float
CDECL
unix_asinhf
(
float
x
)
{
#ifdef HAVE_ASINHF
return
asinhf
(
x
);
#else
return
unix_asinh
(
x
);
#endif
}
/*********************************************************************
* atanh
*/
static
double
CDECL
unix_atanh
(
double
x
)
...
...
@@ -423,7 +411,6 @@ static float CDECL unix_tgammaf(float x)
static
const
struct
unix_funcs
funcs
=
{
unix_asinh
,
unix_asinhf
,
unix_atanh
,
unix_atanhf
,
unix_cosh
,
...
...
dlls/msvcrt/unixlib.h
View file @
17174db6
...
...
@@ -24,7 +24,6 @@
struct
unix_funcs
{
double
(
CDECL
*
asinh
)(
double
x
);
float
(
CDECL
*
asinhf
)(
float
x
);
double
(
CDECL
*
atanh
)(
double
x
);
float
(
CDECL
*
atanhf
)(
float
x
);
double
(
CDECL
*
cosh
)(
double
x
);
...
...
include/config.h.in
View file @
17174db6
...
...
@@ -28,9 +28,6 @@
/* Define to 1 if you have the `asinh' function. */
#undef HAVE_ASINH
/* Define to 1 if you have the `asinhf' function. */
#undef HAVE_ASINHF
/* Define to 1 if you have the <asm/types.h> header file. */
#undef HAVE_ASM_TYPES_H
...
...
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