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

Alexandre Julliard julliard at winehq.org
Tue Jul 12 13:47:11 CDT 2011


Module: wine
Branch: master
Commit: a369b2bd630cbeaddc94b5b4078e38e5e285ff6d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a369b2bd630cbeaddc94b5b4078e38e5e285ff6d

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Jul 12 14:23:38 2011 +0200

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

---

 dlls/d3dx9_36/math.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx9_36/math.c b/dlls/d3dx9_36/math.c
index f13f2fb..481278e 100644
--- a/dlls/d3dx9_36/math.c
+++ b/dlls/d3dx9_36/math.c
@@ -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;
 




More information about the wine-cvs mailing list