Commit 7e6756d0 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Import log2 implementation from musl.

parent 301bde60
......@@ -19622,7 +19622,6 @@ for ac_func in \
fmaf \
lgamma \
lgammaf \
log2 \
tgamma \
tgammaf
......
......@@ -2661,7 +2661,6 @@ AC_CHECK_FUNCS(\
fmaf \
lgamma \
lgammaf \
log2 \
tgamma \
tgammaf
)
......
......@@ -121,18 +121,6 @@ static float CDECL unix_lgammaf(float x)
}
/*********************************************************************
* log2
*/
static double CDECL unix_log2(double x)
{
#ifdef HAVE_LOG2
return log2(x);
#else
return log(x) / log(2);
#endif
}
/*********************************************************************
* pow
*/
static double CDECL unix_pow( double x, double y )
......@@ -183,7 +171,6 @@ static const struct unix_funcs funcs =
unix_fmaf,
unix_lgamma,
unix_lgammaf,
unix_log2,
unix_pow,
unix_powf,
unix_tgamma,
......
......@@ -30,7 +30,6 @@ struct unix_funcs
float (CDECL *fmaf)(float x, float y, float z);
double (CDECL *lgamma)(double x);
float (CDECL *lgammaf)(float x);
double (CDECL *log2)(double x);
double (CDECL *pow)(double x, double y);
float (CDECL *powf)(float x, float y);
double (CDECL *tgamma)(double x);
......
......@@ -408,9 +408,6 @@
/* Define to 1 if you have the <linux/videodev2.h> header file. */
#undef HAVE_LINUX_VIDEODEV2_H
/* Define to 1 if you have the `log2' function. */
#undef HAVE_LOG2
/* Define to 1 if you have the `lstat' function. */
#undef HAVE_LSTAT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment