msvcrt: Implement nan.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2017-01-27 12:38:02 +01:00 committed by Alexandre Julliard
parent b924ccb699
commit 09e4fc834d
5 changed files with 29 additions and 12 deletions

View File

@ -288,9 +288,9 @@
@ cdecl lroundl(double) ucrtbase.lroundl
@ cdecl modf(double ptr) ucrtbase.modf
@ cdecl -arch=arm,x86_64 modff(float ptr) ucrtbase.modff
@ stub nan
@ stub nanf
@ stub nanl
@ cdecl nan(str) ucrtbase.nan
@ cdecl nanf(str) ucrtbase.nanf
@ cdecl nanl(str) ucrtbase.nanl
@ cdecl nearbyint(double) ucrtbase.nearbyint
@ cdecl nearbyintf(float) ucrtbase.nearbyintf
@ cdecl nearbyintl(double) ucrtbase.nearbyintl

View File

@ -2293,9 +2293,9 @@
@ cdecl memset(ptr long long) MSVCRT_memset
@ cdecl modf(double ptr) MSVCRT_modf
@ cdecl -arch=arm,x86_64 modff(float ptr) MSVCRT_modff
@ stub nan
@ stub nanf
@ stub nanl
@ cdecl nan(str) MSVCR120_nan
@ cdecl nanf(str) MSVCR120_nanf
@ cdecl nanl(str) MSVCR120_nan
@ cdecl nearbyint(double) MSVCRT_nearbyint
@ cdecl nearbyintf(float) MSVCRT_nearbyintf
@ cdecl nearbyintl(double) MSVCRT_nearbyint

View File

@ -1956,9 +1956,9 @@
@ cdecl memset(ptr long long) msvcr120.memset
@ cdecl modf(double ptr) msvcr120.modf
@ cdecl -arch=arm,x86_64 modff(float ptr) msvcr120.modff
@ stub nan
@ stub nanf
@ stub nanl
@ cdecl nan(str) msvcr120.nan
@ cdecl nanf(str) msvcr120.nanf
@ cdecl nanl(str) msvcr120.nanl
@ cdecl nearbyint(double) msvcr120.nearbyint
@ cdecl nearbyintf(float) msvcr120.nearbyintf
@ cdecl nearbyintl(double) msvcr120.nearbyintl

View File

@ -2901,3 +2901,20 @@ LDOUBLE CDECL MSVCR120_lgammal(LDOUBLE x)
{
return MSVCR120_lgamma(x);
}
/*********************************************************************
* nan (MSVCR120.@)
*/
double CDECL MSVCR120_nan(const char *tagp)
{
/* Windows ignores input (MSDN) */
return NAN;
}
/*********************************************************************
* nanf (MSVCR120.@)
*/
float CDECL MSVCR120_nanf(const char *tagp)
{
return NAN;
}

View File

@ -2429,9 +2429,9 @@
@ cdecl memset(ptr long long) MSVCRT_memset
@ cdecl modf(double ptr) MSVCRT_modf
@ cdecl -arch=arm,x86_64 modff(float ptr) MSVCRT_modff
@ stub nan
@ stub nanf
@ stub nanl
@ cdecl nan(str) MSVCR120_nan
@ cdecl nanf(str) MSVCR120_nanf
@ cdecl nanl(str) MSVCR120_nan
@ cdecl nearbyint(double) MSVCRT_nearbyint
@ cdecl nearbyintf(float) MSVCRT_nearbyintf
@ cdecl nearbyintl(double) MSVCRT_nearbyint