Author: tkreuzer
Date: Wed Feb 16 12:54:58 2011
New Revision: 50732
URL:
http://svn.reactos.org/svn/reactos?rev=50732&view=rev
Log:
[WINED3D]
Replace 0/0, 1/0 with NAN and INFINITY
Modified:
branches/cmake-bringup/dll/directx/wine/wined3d/wined3d_private.h
Modified: branches/cmake-bringup/dll/directx/wine/wined3d/wined3d_private.h
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/directx/wine/…
==============================================================================
--- branches/cmake-bringup/dll/directx/wine/wined3d/wined3d_private.h [iso-8859-1]
(original)
+++ branches/cmake-bringup/dll/directx/wine/wined3d/wined3d_private.h [iso-8859-1] Wed Feb
16 12:54:58 2011
@@ -196,8 +196,8 @@
} else if(e < 31) {
return sgn * powf(2, (float)e - 15.0f) * (1.0f + ((float)m / 1024.0f));
} else {
- if(m == 0) return sgn / 0.0f; /* +INF / -INF */
- else return 0.0f / 0.0f; /* NAN */
+ if(m == 0) return sgn * INFINITY; /* +INF / -INF */
+ else return NAN;
}
}
@@ -218,8 +218,8 @@
}
else
{
- if (m == 0) return sgn / 0.0f; /* +INF / -INF */
- else return 0.0f / 0.0f; /* NAN */
+ if (m == 0) return sgn * INFINITY; /* +INF / -INF */
+ else return NAN;
}
}