Commit a369b2bd authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

d3dx9_36: Use copysignf() instead of signbit().

parent 7379f31e
......@@ -1776,7 +1776,7 @@ static inline unsigned short float_32_to_16(const float in)
{
int exp = 0, origexp;
float tmp = fabs(in);
int sign = signbit(in);
int sign = (copysignf(1, in) < 0);
unsigned int mantissa;
unsigned short ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment