Commit ec2f02db authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr120: Add fmax implementation.

parent 852f6a5b
...@@ -2164,9 +2164,9 @@ ...@@ -2164,9 +2164,9 @@
@ stub fma @ stub fma
@ stub fmaf @ stub fmaf
@ stub fmal @ stub fmal
@ stub fmax @ cdecl fmax(double double) MSVCR120_fmax
@ stub fmaxf @ cdecl fmaxf(float float) MSVCR120_fmaxf
@ stub fmaxl @ cdecl fmaxl(double double) MSVCR120_fmax
@ stub fmin @ stub fmin
@ stub fminf @ stub fminf
@ stub fminl @ stub fminl
......
...@@ -1833,9 +1833,9 @@ ...@@ -1833,9 +1833,9 @@
@ stub fma @ stub fma
@ stub fmaf @ stub fmaf
@ stub fmal @ stub fmal
@ stub fmax @ cdecl fmax(double double) msvcr120.fmax
@ stub fmaxf @ cdecl fmaxf(float float) msvcr120.fmaxf
@ stub fmaxl @ cdecl fmaxl(double double) msvcr120.fmaxl
@ stub fmin @ stub fmin
@ stub fminf @ stub fminf
@ stub fminl @ stub fminl
......
...@@ -2605,3 +2605,31 @@ short CDECL MSVCR120__ldtest(LDOUBLE *x) ...@@ -2605,3 +2605,31 @@ short CDECL MSVCR120__ldtest(LDOUBLE *x)
{ {
return MSVCR120__dclass(*x); return MSVCR120__dclass(*x);
} }
/*********************************************************************
* fmaxf (MSVCR120.@)
*/
float CDECL MSVCR120_fmaxf(float x, float y)
{
if(isnanf(x))
return y;
if(isnanf(y))
return x;
if(x==0 && y==0)
return signbit(x) ? y : x;
return x<y ? y : x;
}
/*********************************************************************
* fmax (MSVCR120.@)
*/
double CDECL MSVCR120_fmax(double x, double y)
{
if(isnan(x))
return y;
if(isnan(y))
return x;
if(x==0 && y==0)
return signbit(x) ? y : x;
return x<y ? y : x;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment