Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f4c88b3e
Commit
f4c88b3e
authored
Jun 08, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Import tgammaf implementation from musl.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
16fa6b78
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
23 deletions
+5
-23
configure
configure
+1
-2
configure.ac
configure.ac
+1
-2
math.c
dlls/msvcrt/math.c
+3
-1
unixlib.c
dlls/msvcrt/unixlib.c
+0
-14
unixlib.h
dlls/msvcrt/unixlib.h
+0
-1
config.h.in
include/config.h.in
+0
-3
No files found.
configure
View file @
f4c88b3e
...
...
@@ -19622,8 +19622,7 @@ fi
for
ac_func
in
\
exp2
\
exp2f
\
fmaf
\
tgammaf
fmaf
do
:
as_ac_var
=
`
$as_echo
"ac_cv_func_
$ac_func
"
|
$as_tr_sh
`
...
...
configure.ac
View file @
f4c88b3e
...
...
@@ -2661,8 +2661,7 @@ fi
AC_CHECK_FUNCS(\
exp2 \
exp2f \
fmaf \
tgammaf
fmaf
)
LIBS="$ac_save_LIBS"
...
...
dlls/msvcrt/math.c
View file @
f4c88b3e
...
...
@@ -9171,10 +9171,12 @@ double CDECL tgamma(double x)
/*********************************************************************
* tgammaf (MSVCR120.@)
*
* Copied from musl: src/math/tgammaf.c
*/
float
CDECL
tgammaf
(
float
x
)
{
return
unix_funcs
->
tgammaf
(
x
);
return
tgamma
(
x
);
}
/*********************************************************************
...
...
dlls/msvcrt/unixlib.c
View file @
f4c88b3e
...
...
@@ -110,19 +110,6 @@ static float CDECL unix_powf( float x, float y )
return
powf
(
x
,
y
);
}
/*********************************************************************
* tgammaf
*/
static
float
CDECL
unix_tgammaf
(
float
x
)
{
#ifdef HAVE_TGAMMAF
return
tgammaf
(
x
);
#else
FIXME
(
"not implemented
\n
"
);
return
0
;
#endif
}
static
const
struct
unix_funcs
funcs
=
{
unix_exp
,
...
...
@@ -132,7 +119,6 @@ static const struct unix_funcs funcs =
unix_fmaf
,
unix_pow
,
unix_powf
,
unix_tgammaf
,
};
NTSTATUS
CDECL
__wine_init_unix_lib
(
HMODULE
module
,
DWORD
reason
,
const
void
*
ptr_in
,
void
*
ptr_out
)
...
...
dlls/msvcrt/unixlib.h
View file @
f4c88b3e
...
...
@@ -30,7 +30,6 @@ struct unix_funcs
float
(
CDECL
*
fmaf
)(
float
x
,
float
y
,
float
z
);
double
(
CDECL
*
pow
)(
double
x
,
double
y
);
float
(
CDECL
*
powf
)(
float
x
,
float
y
);
float
(
CDECL
*
tgammaf
)(
float
x
);
};
#endif
/* __UNIXLIB_H */
include/config.h.in
View file @
f4c88b3e
...
...
@@ -929,9 +929,6 @@
/* Define to 1 if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H
/* Define to 1 if you have the `tgammaf' function. */
#undef HAVE_TGAMMAF
/* Define to 1 if you have the `thr_kill2' function. */
#undef HAVE_THR_KILL2
...
...
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