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

This commit is contained in:
Francois Gouget 2011-07-12 14:23:38 +02:00 committed by Alexandre Julliard
parent 7379f31e4b
commit a369b2bd63
1 changed files with 1 additions and 1 deletions

View File

@ -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;