[5/5] wined3d: Fix NaN and Inf generation in msvc

Stefan Dösinger stefan at codeweavers.com
Tue Aug 3 05:23:03 CDT 2010

Am 03.08.2010 um 02:47 schrieb Vitaly Budovski:
> The INFINITY macro is part of C99, but for NaN, why not use something
> like sqrt(-1) ?
We don't use C99 features in Wine, some compilers don't support them.

sqrt(-1) may or may not work, but it will be essentially the same as 0.0 / 0.0. Compilers may complain about sqrt(-1) just as they do with the 0.0 / 0.0 division.

More information about the wine-devel mailing list