mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[D3DX9_36/WINED3D]
- Remove useless copysignf invocation and the wrong defines for it - BrokenHacksOnTopOfBrokenCode--; - Should be sent upstream svn path=/trunk/; revision=67709
This commit is contained in:
parent
0aff65fcb4
commit
c167f82226
2 changed files with 2 additions and 10 deletions
|
@ -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 @@ unsigned short float_32_to_16(const float in)
|
|||
{
|
||||
int exp = 0, origexp;
|
||||
float tmp = fabsf(in);
|
||||
int sign = (copysignf(1, in) < 0);
|
||||
int sign = (in < 0);
|
||||
unsigned int mantissa;
|
||||
unsigned short ret;
|
||||
|
||||
|
|
|
@ -26,10 +26,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);
|
||||
|
||||
struct wined3d_format_channels
|
||||
|
@ -3991,7 +3987,7 @@ void wined3d_ftoa(float value, char *s)
|
|||
{
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue