[PATCH 2/6] d3dx9: Get rid of redundant temporary variable in D3DXQuaternionInverse.
Paul Gofman
gofmanp at gmail.com
Thu Apr 14 07:10:12 CDT 2016
Signed-off-by: Paul Gofman <gofmanp at gmail.com>
---
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;
}
--
2.5.5
More information about the wine-patches
mailing list