- Remove useless copysignf invocation and the wrong defines for it
- BrokenHacksOnTopOfBrokenCode--;
- Should be sent upstream
svn path=/trunk/; revision=67709
#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;
{
int exp = 0, origexp;
float tmp = fabsf(in);
- int sign = (copysignf(1, in) < 0);
+ int sign = (in < 0);
unsigned int mantissa;
unsigned short ret;
#include "wined3d_private.h"
-#ifdef _MSC_VER
-#define copysignf(x, y) ((x) < 0.0f ? -fabsf(y) : fabsf(y))
-#endif
-
WINE_DEFAULT_DEBUG_CHANNEL(d3d);
struct wined3d_format_channels
{
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