2017-05-08 17:39 GMT+02:00 Paul Gofman gofmanp@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.