[PATCH 3/9] d3dx9: Add 'asin' preshader opcode.

Matteo Bruni matteo.mystral at gmail.com
Thu May 11 09:42:14 CDT 2017


2017-05-08 17:39 GMT+02:00 Paul Gofman <gofmanp at gmail.com>:

> +/* is_nan() does not work (by design) if compiled with gcc -ffinite-math-only option which is implied by
> + * -ffast_math. */
> +static BOOL pres_is_nan(double v)
> +{
> +    return (*(ULONG64 *)&v & 0x7ff8000000000000) == 0x7ff8000000000000;
> +}

I don't think we care about people compiling Wine with broken CFLAGS.
We should just trust the isnan() library function. FWIW we already do
so in other places in Wine.



More information about the wine-devel mailing list