[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    [3/5] wined3d: Replace pow with powf in surface_base.c
From:       Stefan_Dösinger <stefan () codeweavers ! com>
Date:       2010-07-31 6:45:27
Message-ID: 9BFB7BF3-990A-4E5D-A3D9-82CA42CA87F8 () codeweavers ! com
[Download RAW message or body]

["0004-Replace-pow-with-powf-in-surface_base.c.patch" (0004-Replace-pow-with-powf-in-surface_base.c.patch)]

From 350324a99ccb71eea15ff6e9dd4c1b0cec7babdc Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan@codeweavers.com>
Date: Wed, 28 Jul 2010 17:30:17 +0200
Subject: [PATCH 04/13] Replace pow with powf in surface_base.c

---
 dlls/wined3d/surface_base.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/surface_base.c b/dlls/wined3d/surface_base.c
index 2bd0e37..6f7408d 100644
--- a/dlls/wined3d/surface_base.c
+++ b/dlls/wined3d/surface_base.c
@@ -46,18 +46,18 @@ static inline unsigned short float_32_to_16(const float *in)
     if(isnan(*in)) return 0x7C01;
     if (isinf(*in)) return (*in < 0.0f ? 0xFC00 : 0x7c00);
 
-    if(tmp < pow(2, 10)) {
+    if(tmp < powf(2, 10)) {
         do
         {
             tmp = tmp * 2.0f;
             exp--;
-        }while(tmp < pow(2, 10));
-    } else if(tmp >= pow(2, 11)) {
+        }while(tmp < powf(2, 10));
+    } else if(tmp >= powf(2, 11)) {
         do
         {
             tmp /= 2.0f;
             exp++;
-        }while(tmp >= pow(2, 11));
+        }while(tmp >= powf(2, 11));
     }
 
     mantissa = (unsigned int) tmp;
-- 
1.6.4.4





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic