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
75537f43
Commit
75537f43
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 acoshf implementation from musl.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9b19a110
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
20 deletions
+11
-20
configure
configure
+0
-1
configure.ac
configure.ac
+0
-1
math.c
dlls/msvcrt/math.c
+11
-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 @
75537f43
...
...
@@ -19617,7 +19617,6 @@ fi
for
ac_func
in
\
acosh
\
acoshf
\
asinh
\
asinhf
\
atanh
\
...
...
configure.ac
View file @
75537f43
...
...
@@ -2657,7 +2657,6 @@ fi
AC_CHECK_FUNCS(\
acosh \
acoshf \
asinh \
asinhf \
atanh \
...
...
dlls/msvcrt/math.c
View file @
75537f43
...
...
@@ -6599,16 +6599,26 @@ double CDECL acosh(double x)
/*********************************************************************
* acoshf (MSVCR120.@)
*
* Copied from musl: src/math/acoshf.c
*/
float
CDECL
acoshf
(
float
x
)
{
UINT32
a
=
*
(
UINT32
*
)
&
x
&
0x7fffffff
;
if
(
x
<
1
)
{
*
_errno
()
=
EDOM
;
feraiseexcept
(
FE_INVALID
);
return
NAN
;
}
return
unix_funcs
->
acoshf
(
x
);
if
(
a
<
0x3f800000
+
(
1
<<
23
))
/* |x| < 2, up to 2ulp error in [1,1.125] */
return
log1pf
(
x
-
1
+
sqrtf
((
x
-
1
)
*
(
x
-
1
)
+
2
*
(
x
-
1
)));
if
(
*
(
UINT32
*
)
&
x
<
0x3f800000
+
(
12
<<
23
))
/* 2 <= x < 0x1p12 */
return
logf
(
2
*
x
-
1
/
(
x
+
sqrtf
(
x
*
x
-
1
)));
/* x >= 0x1p12 or x <= -2 or nan */
return
logf
(
x
)
+
0
.
693147180559945309417232121458176568
f
;
}
/*********************************************************************
...
...
dlls/msvcrt/unixlib.c
View file @
75537f43
...
...
@@ -56,18 +56,6 @@ static double CDECL unix_acosh(double x)
}
/*********************************************************************
* acoshf
*/
static
float
CDECL
unix_acoshf
(
float
x
)
{
#ifdef HAVE_ACOSHF
return
acoshf
(
x
);
#else
return
unix_acosh
(
x
);
#endif
}
/*********************************************************************
* asinh
*/
static
double
CDECL
unix_asinh
(
double
x
)
...
...
@@ -448,7 +436,6 @@ static float CDECL unix_tgammaf(float x)
static
const
struct
unix_funcs
funcs
=
{
unix_acosh
,
unix_acoshf
,
unix_asinh
,
unix_asinhf
,
unix_atanh
,
...
...
dlls/msvcrt/unixlib.h
View file @
75537f43
...
...
@@ -24,7 +24,6 @@
struct
unix_funcs
{
double
(
CDECL
*
acosh
)(
double
x
);
float
(
CDECL
*
acoshf
)(
float
x
);
double
(
CDECL
*
asinh
)(
double
x
);
float
(
CDECL
*
asinhf
)(
float
x
);
double
(
CDECL
*
atanh
)(
double
x
);
...
...
include/config.h.in
View file @
75537f43
...
...
@@ -12,9 +12,6 @@
/* Define to 1 if you have the `acosh' function. */
#undef HAVE_ACOSH
/* Define to 1 if you have the `acoshf' function. */
#undef HAVE_ACOSHF
/* Define to 1 if you have the <alias.h> header file. */
#undef HAVE_ALIAS_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