[PATCH v4] msvcr120: Add nexttoward implementation.

Piotr Caban piotr.caban at gmail.com
Fri Dec 14 05:05:56 CST 2018


Hi Zebediah,

Sorry for long reply time.

On 11/27/18 4:45 AM, Zebediah Figura wrote:
> +float CDECL MSVCRT_nexttowardf(float num, double next)
> +{
> +#ifdef HAVE_NEXTTOWARDF
> +    float ret = nexttowardf(num, next);
> +    if (!isnormal(ret) && !isnan(ret) && !isinf(num)) *MSVCRT__errno() = MSVCRT_ERANGE;
> +    return ret;
isnormal is also a C99 function. You can use MSVCRT__fpclass instead.

Thanks,
Piotr



More information about the wine-devel mailing list