msvcr120: Add feraiseexcept implementation.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2021-05-13 18:46:28 +02:00 committed by Alexandre Julliard
parent cef4c8c38a
commit 0f721c2f00
3 changed files with 14 additions and 2 deletions

View File

@ -2149,7 +2149,7 @@
@ cdecl fegetround()
@ stub feholdexcept
@ cdecl feof(ptr)
@ stub feraiseexcept
@ cdecl feraiseexcept(long)
@ cdecl ferror(ptr)
@ cdecl fesetenv(ptr)
@ cdecl fesetexceptflag(ptr long)

View File

@ -1815,7 +1815,7 @@
@ cdecl fegetround() msvcr120.fegetround
@ stub feholdexcept
@ cdecl feof(ptr) msvcr120.feof
@ stub feraiseexcept
@ cdecl feraiseexcept(long) msvcr120.feraiseexcept
@ cdecl ferror(ptr) msvcr120.ferror
@ cdecl fesetenv(ptr) msvcr120.fesetenv
@ cdecl fesetexceptflag(ptr long) msvcr120.fesetexceptflag

View File

@ -2261,6 +2261,18 @@ int CDECL fesetexceptflag(const fexcept_t *status, int excepts)
return fesetenv(&env);
}
/*********************************************************************
* feraiseexcept (MSVCR120.@)
*/
int CDECL feraiseexcept(int flags)
{
fenv_t env;
fegetenv(&env);
env._Fe_stat |= (flags & FE_ALL_EXCEPT);
return fesetenv(&env);
}
/*********************************************************************
* feclearexcept (MSVCR120.@)
*/