Stefan Dösinger : wined3d: Use powf instead of pow.
Alexandre Julliard
julliard at winehq.org
Thu Jul 29 12:08:41 CDT 2010
Module: wine
Branch: master
Commit: b25f22e45648ff07453fcc63ab2dbe0f488cc706
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b25f22e45648ff07453fcc63ab2dbe0f488cc706
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Jul 28 15:05:37 2010 +0200
wined3d: Use powf instead of pow.
---
dlls/wined3d/wined3d_private.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 77ef661..7e53c90 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -192,9 +192,9 @@ static inline float float_16_to_32(const unsigned short *in) {
if(e == 0) {
if(m == 0) return sgn * 0.0f; /* +0.0 or -0.0 */
- else return sgn * pow(2, -14.0f) * ((float)m / 1024.0f);
+ else return sgn * powf(2, -14.0f) * ((float)m / 1024.0f);
} else if(e < 31) {
- return sgn * pow(2, (float)e - 15.0f) * (1.0f + ((float)m / 1024.0f));
+ return sgn * powf(2, (float)e - 15.0f) * (1.0f + ((float)m / 1024.0f));
} else {
if(m == 0) return sgn / 0.0f; /* +INF / -INF */
else return 0.0f / 0.0f; /* NAN */
@@ -210,11 +210,11 @@ static inline float float_24_to_32(DWORD in)
if (e == 0)
{
if (m == 0) return sgn * 0.0f; /* +0.0 or -0.0 */
- else return sgn * pow(2, -6.0f) * ((float)m / 524288.0f);
+ else return sgn * powf(2, -6.0f) * ((float)m / 524288.0f);
}
else if (e < 15)
{
- return sgn * pow(2, (float)e - 7.0f) * (1.0f + ((float)m / 524288.0f));
+ return sgn * powf(2, (float)e - 7.0f) * (1.0f + ((float)m / 524288.0f));
}
else
{
More information about the wine-cvs
mailing list