[PATCH 1/4] msvcr120: Add fegetexceptflag.

Piotr Caban piotr.caban at gmail.com
Tue Mar 2 05:56:36 CST 2021


Hi Daniel,

On 3/2/21 5:06 AM, Daniel Lehman wrote:
> +/*********************************************************************
> + *      fegetexceptflag (MSVCR120.@)
> + */
> +int CDECL fegetexceptflag(fexcept_t *status, int excepts)
> +{
> +    fenv_t env;
> +    int rc;
> +
> +    rc = fegetenv(&env);
> +    *status = env._Fe_stat & excepts & FE_ALL_EXCEPT;
> +    return rc;
> +}
Is there a reason of not using _statusfp() instead of fegetenv here?

Thanks,
Piotr



More information about the wine-devel mailing list