msvcr120: If erff is not available, fall back to erf.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2017-07-12 18:04:40 +02:00 committed by Alexandre Julliard
parent 5b9c69b93f
commit ddff85a361
1 changed files with 12 additions and 13 deletions

View File

@ -2732,19 +2732,6 @@ 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.@)
*/
@ -2758,6 +2745,18 @@ double CDECL MSVCR120_erf(double x)
#endif
}
/*********************************************************************
* erff (MSVCR120.@)
*/
float CDECL MSVCR120_erff(float x)
{
#ifdef HAVE_ERFF
return erff(x);
#else
return MSVCR120_erf(x);
#endif
}
/*********************************************************************
* erfl (MSVCR120.@)
*/