Commit 92651b98 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr120: Add fesetround implementation.

parent 32bb8d90
......@@ -90,11 +90,11 @@
@ stub feclearexcept
@ cdecl fegetenv(ptr) ucrtbase.fegetenv
@ stub fegetexceptflag
@ stub fegetround
@ cdecl fegetround() ucrtbase.fegetround
@ stub feholdexcept
@ cdecl fesetenv(ptr) ucrtbase.fesetenv
@ stub fesetexceptflag
@ stub fesetround
@ cdecl fesetround(long) ucrtbase.fesetround
@ stub fetestexcept
@ cdecl perror(str) ucrtbase.perror
@ stub quick_exit
......
......@@ -2146,14 +2146,14 @@
@ stub feclearexcept
@ cdecl fegetenv(ptr) MSVCRT_fegetenv
@ stub fegetexceptflag
@ stub fegetround
@ cdecl fegetround() MSVCRT_fegetround
@ stub feholdexcept
@ cdecl feof(ptr) MSVCRT_feof
@ stub feraiseexcept
@ cdecl ferror(ptr) MSVCRT_ferror
@ cdecl fesetenv(ptr) MSVCRT_fesetenv
@ stub fesetexceptflag
@ stub fesetround
@ cdecl fesetround(long) MSVCRT_fesetround
@ stub fetestexcept
@ stub feupdateenv
@ cdecl fflush(ptr) MSVCRT_fflush
......
......@@ -1812,14 +1812,14 @@
@ stub feclearexcept
@ cdecl fegetenv(ptr) msvcr120.fegetenv
@ stub fegetexceptflag
@ stub fegetround
@ cdecl fegetround() msvcr120.fegetround
@ stub feholdexcept
@ cdecl feof(ptr) msvcr120.feof
@ stub feraiseexcept
@ cdecl ferror(ptr) msvcr120.ferror
@ cdecl fesetenv(ptr) msvcr120.fesetenv
@ stub fesetexceptflag
@ stub fesetround
@ cdecl fesetround(long) msvcr120.fesetround
@ stub fetestexcept
@ stub feupdateenv
@ cdecl fflush(ptr) msvcr120.fflush
......
......@@ -1232,6 +1232,25 @@ int CDECL __fpe_flt_rounds(void)
}
/*********************************************************************
* fegetround (MSVCR120.@)
*/
int CDECL MSVCRT_fegetround(void)
{
return _controlfp(0, 0) & MSVCRT__RC_CHOP;
}
/*********************************************************************
* fesetround (MSVCR120.@)
*/
int CDECL MSVCRT_fesetround(int round_mode)
{
if (round_mode & (~MSVCRT__RC_CHOP))
return 1;
_controlfp(round_mode, MSVCRT__RC_CHOP);
return 0;
}
/*********************************************************************
* _copysign (MSVCRT.@)
*/
double CDECL MSVCRT__copysign(double num, double sign)
......
......@@ -2289,13 +2289,13 @@
@ stub feclearexcept
@ cdecl fegetenv(ptr) MSVCRT_fegetenv
@ stub fegetexceptflag
@ stub fegetround
@ cdecl fegetround() MSVCRT_fegetround
@ stub feholdexcept
@ cdecl feof(ptr) MSVCRT_feof
@ cdecl ferror(ptr) MSVCRT_ferror
@ cdecl fesetenv(ptr) MSVCRT_fesetenv
@ stub fesetexceptflag
@ stub fesetround
@ cdecl fesetround(long) MSVCRT_fesetround
@ stub fetestexcept
@ cdecl fflush(ptr) MSVCRT_fflush
@ cdecl fgetc(ptr) MSVCRT_fgetc
......
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