msvcrt: Implement the fdim functions.
Signed-off-by: Martin Storsjo <martin@martin.st> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
62f2cd1b47
commit
83a95b8fcf
|
@ -236,9 +236,9 @@
|
||||||
@ cdecl expm1l(double) ucrtbase.expm1l
|
@ cdecl expm1l(double) ucrtbase.expm1l
|
||||||
@ cdecl fabs(double) ucrtbase.fabs
|
@ cdecl fabs(double) ucrtbase.fabs
|
||||||
@ cdecl -arch=arm,arm64 fabsf(float) ucrtbase.fabsf
|
@ cdecl -arch=arm,arm64 fabsf(float) ucrtbase.fabsf
|
||||||
@ stub fdim
|
@ cdecl fdim(double double) ucrtbase.fdim
|
||||||
@ stub fdimf
|
@ cdecl fdimf(float float) ucrtbase.fdimf
|
||||||
@ stub fdiml
|
@ cdecl fdiml(double double) ucrtbase.fdiml
|
||||||
@ cdecl floor(double) ucrtbase.floor
|
@ cdecl floor(double) ucrtbase.floor
|
||||||
@ cdecl -arch=arm,x86_64,arm64 floorf(float) ucrtbase.floorf
|
@ cdecl -arch=arm,x86_64,arm64 floorf(float) ucrtbase.floorf
|
||||||
@ cdecl fma(double double double) ucrtbase.fma
|
@ cdecl fma(double double double) ucrtbase.fma
|
||||||
|
|
|
@ -2140,9 +2140,9 @@
|
||||||
@ cdecl fabs(double) MSVCRT_fabs
|
@ cdecl fabs(double) MSVCRT_fabs
|
||||||
@ cdecl -arch=arm,x86_64,arm64 fabsf(float) MSVCRT_fabsf
|
@ cdecl -arch=arm,x86_64,arm64 fabsf(float) MSVCRT_fabsf
|
||||||
@ cdecl fclose(ptr) MSVCRT_fclose
|
@ cdecl fclose(ptr) MSVCRT_fclose
|
||||||
@ stub fdim
|
@ cdecl fdim(double double) MSVCR120_fdim
|
||||||
@ stub fdimf
|
@ cdecl fdimf(float float) MSVCR120_fdimf
|
||||||
@ stub fdiml
|
@ cdecl fdiml(double double) MSVCR120_fdim
|
||||||
@ stub feclearexcept
|
@ stub feclearexcept
|
||||||
@ cdecl fegetenv(ptr) MSVCRT_fegetenv
|
@ cdecl fegetenv(ptr) MSVCRT_fegetenv
|
||||||
@ stub fegetexceptflag
|
@ stub fegetexceptflag
|
||||||
|
|
|
@ -1806,9 +1806,9 @@
|
||||||
@ cdecl fabs(double) msvcr120.fabs
|
@ cdecl fabs(double) msvcr120.fabs
|
||||||
@ cdecl -arch=arm,x86_64,arm64 fabsf(float) msvcr120.fabsf
|
@ cdecl -arch=arm,x86_64,arm64 fabsf(float) msvcr120.fabsf
|
||||||
@ cdecl fclose(ptr) msvcr120.fclose
|
@ cdecl fclose(ptr) msvcr120.fclose
|
||||||
@ stub fdim
|
@ cdecl fdim(double double) msvcr120.fdim
|
||||||
@ stub fdimf
|
@ cdecl fdimf(float float) msvcr120.fdimf
|
||||||
@ stub fdiml
|
@ cdecl fdiml(double double) msvcr120.fdiml
|
||||||
@ stub feclearexcept
|
@ stub feclearexcept
|
||||||
@ cdecl fegetenv(ptr) msvcr120.fegetenv
|
@ cdecl fegetenv(ptr) msvcr120.fegetenv
|
||||||
@ stub fegetexceptflag
|
@ stub fegetexceptflag
|
||||||
|
|
|
@ -3023,6 +3023,30 @@ double CDECL MSVCR120_fmax(double x, double y)
|
||||||
return x<y ? y : x;
|
return x<y ? y : x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*********************************************************************
|
||||||
|
* fdimf (MSVCR120.@)
|
||||||
|
*/
|
||||||
|
float CDECL MSVCR120_fdimf(float x, float y)
|
||||||
|
{
|
||||||
|
if(isnan(x))
|
||||||
|
return x;
|
||||||
|
if(isnan(y))
|
||||||
|
return y;
|
||||||
|
return x>y ? x-y : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********************************************************************
|
||||||
|
* fdim (MSVCR120.@)
|
||||||
|
*/
|
||||||
|
double CDECL MSVCR120_fdim(double x, double y)
|
||||||
|
{
|
||||||
|
if(isnan(x))
|
||||||
|
return x;
|
||||||
|
if(isnan(y))
|
||||||
|
return y;
|
||||||
|
return x>y ? x-y : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* _fdsign (MSVCR120.@)
|
* _fdsign (MSVCR120.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2283,9 +2283,9 @@
|
||||||
@ cdecl fabs(double) MSVCRT_fabs
|
@ cdecl fabs(double) MSVCRT_fabs
|
||||||
@ cdecl -arch=arm,arm64 fabsf(float) MSVCRT_fabsf
|
@ cdecl -arch=arm,arm64 fabsf(float) MSVCRT_fabsf
|
||||||
@ cdecl fclose(ptr) MSVCRT_fclose
|
@ cdecl fclose(ptr) MSVCRT_fclose
|
||||||
@ stub fdim
|
@ cdecl fdim(double double) MSVCR120_fdim
|
||||||
@ stub fdimf
|
@ cdecl fdimf(float float) MSVCR120_fdimf
|
||||||
@ stub fdiml
|
@ cdecl fdiml(double double) MSVCR120_fdim
|
||||||
@ stub feclearexcept
|
@ stub feclearexcept
|
||||||
@ cdecl fegetenv(ptr) MSVCRT_fegetenv
|
@ cdecl fegetenv(ptr) MSVCRT_fegetenv
|
||||||
@ stub fegetexceptflag
|
@ stub fegetexceptflag
|
||||||
|
|
Loading…
Reference in New Issue