Author: tkreuzer
Date: Thu May 14 10:00:37 2015
New Revision: 67709
URL:
http://svn.reactos.org/svn/reactos?rev=67709&view=rev
Log:
[D3DX9_36/WINED3D]
- Remove useless copysignf invocation and the wrong defines for it
- BrokenHacksOnTopOfBrokenCode--;
- Should be sent upstream
Modified:
trunk/reactos/dll/directx/wine/d3dx9_36/math.c
trunk/reactos/dll/directx/wine/wined3d/utils.c
Modified: trunk/reactos/dll/directx/wine/d3dx9_36/math.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/d3dx9_36/…
==============================================================================
--- trunk/reactos/dll/directx/wine/d3dx9_36/math.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/wine/d3dx9_36/math.c [iso-8859-1] Thu May 14 10:00:37 2015
@@ -24,10 +24,6 @@
#include "d3dx9_36_private.h"
-#ifdef _MSC_VER
-#define copysignf(x, y) ((x) < 0.0f ? -fabsf(y) : fabsf(y))
-#endif
-
struct ID3DXMatrixStackImpl
{
ID3DXMatrixStack ID3DXMatrixStack_iface;
@@ -2122,7 +2118,7 @@
{
int exp = 0, origexp;
float tmp = fabsf(in);
- int sign = (copysignf(1, in) < 0);
+ int sign = (in < 0);
unsigned int mantissa;
unsigned short ret;
Modified: trunk/reactos/dll/directx/wine/wined3d/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/wined3d/u…
==============================================================================
--- trunk/reactos/dll/directx/wine/wined3d/utils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/wine/wined3d/utils.c [iso-8859-1] Thu May 14 10:00:37 2015
@@ -25,10 +25,6 @@
*/
#include "wined3d_private.h"
-
-#ifdef _MSC_VER
-#define copysignf(x, y) ((x) < 0.0f ? -fabsf(y) : fabsf(y))
-#endif
WINE_DEFAULT_DEBUG_CHANNEL(d3d);
@@ -3991,7 +3987,7 @@
{
int idx = 1;
- if (copysignf(1.0f, value) < 0.0f)
+ if (value < 0.0f)
++idx;
/* Be sure to allocate a buffer of at least 17 characters for the result