mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:57:27 +00:00
msvcrt: Use the fmin()/fminf() implementation from the bundled musl library.
This commit is contained in:
parent
4a9258ee97
commit
5564512b09
|
@ -8920,34 +8920,6 @@ int CDECL _fdpcomp(float x, float y)
|
|||
return _dpcomp(x, y);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* fminf (MSVCR120.@)
|
||||
*/
|
||||
float CDECL fminf(float x, float y)
|
||||
{
|
||||
if(isnan(x))
|
||||
return y;
|
||||
if(isnan(y))
|
||||
return x;
|
||||
if(x==0 && y==0)
|
||||
return signbit(x) ? x : y;
|
||||
return x<y ? x : y;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* fmin (MSVCR120.@)
|
||||
*/
|
||||
double CDECL fmin(double x, double y)
|
||||
{
|
||||
if(isnan(x))
|
||||
return y;
|
||||
if(isnan(y))
|
||||
return x;
|
||||
if(x==0 && y==0)
|
||||
return signbit(x) ? x : y;
|
||||
return x<y ? x : y;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* asinh (MSVCR120.@)
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue