Module: wine Branch: master Commit: 4431f6c11dd8dc9c2e07f670e6dd4e6282cde9f9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4431f6c11dd8dc9c2e07f670e6...
Author: Stefan Dösinger stefan@codeweavers.com Date: Wed Jul 28 17:30:17 2010 +0200
wined3d: 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;