msvcrt: Import tgammaf implementation from musl.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
16fa6b7846
commit
f4c88b3e9c
|
@ -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`
|
||||
|
|
|
@ -2661,8 +2661,7 @@ fi
|
|||
AC_CHECK_FUNCS(\
|
||||
exp2 \
|
||||
exp2f \
|
||||
fmaf \
|
||||
tgammaf
|
||||
fmaf
|
||||
)
|
||||
LIBS="$ac_save_LIBS"
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue