Paul Gofman : d3dx9: Get rid of redundant temporary variable in D3DXQuaternionInverse.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 18 10:37:01 CDT 2016
Module: wine
Branch: master
Commit: a67b43c1bed7aa5b2df0529d2358bd1752cc18a3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a67b43c1bed7aa5b2df0529d2358bd1752cc18a3
Author: Paul Gofman <gofmanp at gmail.com>
Date: Thu Apr 14 15:10:12 2016 +0300
d3dx9: Get rid of redundant temporary variable in D3DXQuaternionInverse.
Signed-off-by: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dx9_36/math.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/dlls/d3dx9_36/math.c b/dlls/d3dx9_36/math.c
index 394ff05..1808782 100644
--- a/dlls/d3dx9_36/math.c
+++ b/dlls/d3dx9_36/math.c
@@ -1376,19 +1376,16 @@ D3DXQUATERNION * WINAPI D3DXQuaternionExp(D3DXQUATERNION *out, const D3DXQUATERN
D3DXQUATERNION* WINAPI D3DXQuaternionInverse(D3DXQUATERNION *pout, const D3DXQUATERNION *pq)
{
- D3DXQUATERNION out;
FLOAT norm;
TRACE("pout %p, pq %p\n", pout, pq);
norm = D3DXQuaternionLengthSq(pq);
- out.x = -pq->x / norm;
- out.y = -pq->y / norm;
- out.z = -pq->z / norm;
- out.w = pq->w / norm;
-
- *pout =out;
+ pout->x = -pq->x / norm;
+ pout->y = -pq->y / norm;
+ pout->z = -pq->z / norm;
+ pout->w = pq->w / norm;
return pout;
}
More information about the wine-cvs
mailing list