Commit b06dd5a1 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Import exp2 implementation from musl.

parent 2d449493
......@@ -19619,20 +19619,6 @@ $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
fi
for ac_func in \
exp2
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
LIBS="$ac_save_LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
......
......@@ -2658,9 +2658,6 @@ then
AC_DEFINE(HAVE_ISNAN, 1, [Define to 1 if you have the `isnan' function.])
fi
AC_CHECK_FUNCS(\
exp2
)
LIBS="$ac_save_LIBS"
dnl Check for __builtin_popcount
......
......@@ -51,18 +51,6 @@ static double CDECL unix_exp( double x )
}
/*********************************************************************
* exp2
*/
static double CDECL unix_exp2( double x )
{
#ifdef HAVE_EXP2
return exp2(x);
#else
return pow(2, x);
#endif
}
/*********************************************************************
* pow
*/
static double CDECL unix_pow( double x, double y )
......@@ -73,7 +61,6 @@ static double CDECL unix_pow( double x, double y )
static const struct unix_funcs funcs =
{
unix_exp,
unix_exp2,
unix_pow,
};
......
......@@ -24,7 +24,6 @@
struct unix_funcs
{
double (CDECL *exp)(double x);
double (CDECL *exp2)(double x);
double (CDECL *pow)(double x, double y);
};
......
......@@ -92,9 +92,6 @@
/* Define to 1 if you have the `epoll_create' function. */
#undef HAVE_EPOLL_CREATE
/* Define to 1 if you have the `exp2' function. */
#undef HAVE_EXP2
/* Define to 1 if you have the `F3DAudioInitialize8' function. */
#undef HAVE_F3DAUDIOINITIALIZE8
......
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