msvcr120: Add fesetround implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
32bb8d9068
commit
92651b9850
|
@ -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
|
||||
|
|
|
@ -1231,6 +1231,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.@)
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue