msvcr120: Add erf functions.

This commit is contained in:
Daniel Lehman 2015-05-21 09:25:48 -07:00 committed by Alexandre Julliard
parent 9bf73a043a
commit e89813fe3c
6 changed files with 50 additions and 6 deletions

2
configure vendored
View File

@ -16572,6 +16572,8 @@ fi
for ac_func in \
cbrt \
cbrtf \
erf \
erff \
exp2 \
exp2f \
llrint \

View File

@ -2590,6 +2590,8 @@ fi
AC_CHECK_FUNCS(\
cbrt \
cbrtf \
erf \
erff \
exp2 \
exp2f \
llrint \

View File

@ -2119,12 +2119,12 @@
@ stub ctanhl
@ stub ctanl
@ cdecl -ret64 div(long long) MSVCRT_div
@ stub erf
@ cdecl erf(double) MSVCR120_erf
@ stub erfc
@ stub erfcf
@ stub erfcl
@ stub erff
@ stub erfl
@ cdecl erff(double) MSVCR120_erff
@ cdecl erfl(double) MSVCR120_erfl
@ cdecl exit(long) MSVCRT_exit
@ cdecl exp(double) MSVCRT_exp
@ cdecl exp2(double) MSVCR120_exp2

View File

@ -1788,12 +1788,12 @@
@ stub ctanhl
@ stub ctanl
@ cdecl -ret64 div(long long) msvcr120.div
@ stub erf
@ cdecl erf(double) msvcr120.erf
@ stub erfc
@ stub erfcf
@ stub erfcl
@ stub erff
@ stub erfl
@ cdecl erff(double) msvcr120.erff
@ cdecl erfl(double) msvcr120.erfl
@ cdecl exit(long) msvcr120.exit
@ cdecl exp(double) msvcr120.exp
@ cdecl exp2(double) msvcr120.exp2

View File

@ -2606,6 +2606,40 @@ short CDECL MSVCR120__ldtest(LDOUBLE *x)
return MSVCR120__dclass(*x);
}
/*********************************************************************
* erff (MSVCR120.@)
*/
float CDECL MSVCR120_erff(float x)
{
#ifdef HAVE_ERFF
return erff(x);
#else
FIXME( "not implemented\n" );
return 0.0f;
#endif
}
/*********************************************************************
* erf (MSVCR120.@)
*/
double CDECL MSVCR120_erf(double x)
{
#ifdef HAVE_ERF
return erf(x);
#else
FIXME( "not implemented\n" );
return 0.0;
#endif
}
/*********************************************************************
* erfl (MSVCR120.@)
*/
LDOUBLE CDECL MSVCR120_erfl(LDOUBLE x)
{
return MSVCR120_erf(x);
}
/*********************************************************************
* fmaxf (MSVCR120.@)
*/

View File

@ -111,6 +111,12 @@
/* Define to 1 if you have the `epoll_create' function. */
#undef HAVE_EPOLL_CREATE
/* Define to 1 if you have the `erf' function. */
#undef HAVE_ERF
/* Define to 1 if you have the `erff' function. */
#undef HAVE_ERFF
/* Define to 1 if you have the `exp2' function. */
#undef HAVE_EXP2