Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7fa8b9cc
Commit
7fa8b9cc
authored
Sep 27, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/d3dx9math.inl: Use float functions.
parent
ef65fdda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
d3dx9math.inl
include/d3dx9math.inl
+4
-4
No files found.
include/d3dx9math.inl
View file @
7fa8b9cc
...
...
@@ -967,7 +967,7 @@ static inline FLOAT D3DXVec2Dot(CONST D3DXVECTOR2 *pv1, CONST D3DXVECTOR2 *pv2)
static inline FLOAT D3DXVec2Length(CONST D3DXVECTOR2 *pv)
{
if (!pv) return 0.0f;
return sqrt
( (pv->x) * (pv->x) + (pv->y) * (pv->y)
);
return sqrt
f( pv->x * pv->x + pv->y * pv->y
);
}
static inline FLOAT D3DXVec2LengthSq(CONST D3DXVECTOR2 *pv)
...
...
@@ -1045,7 +1045,7 @@ static inline FLOAT D3DXVec3Dot(CONST D3DXVECTOR3 *pv1, CONST D3DXVECTOR3 *pv2)
static inline FLOAT D3DXVec3Length(CONST D3DXVECTOR3 *pv)
{
if (!pv) return 0.0f;
return sqrt
( (pv->x) * (pv->x) + (pv->y) * (pv->y) + (pv->z) * (pv->z)
);
return sqrt
f( pv->x * pv->x + pv->y * pv->y + pv->z * pv->z
);
}
static inline FLOAT D3DXVec3LengthSq(CONST D3DXVECTOR3 *pv)
...
...
@@ -1119,7 +1119,7 @@ static inline FLOAT D3DXVec4Dot(CONST D3DXVECTOR4 *pv1, CONST D3DXVECTOR4 *pv2)
static inline FLOAT D3DXVec4Length(CONST D3DXVECTOR4 *pv)
{
if (!pv) return 0.0f;
return sqrt
( (pv->x) * (pv->x) + (pv->y) * (pv->y) + (pv->z) * (pv->z) + (pv->w) * (pv->w)
);
return sqrt
f( pv->x * pv->x + pv->y * pv->y + pv->z * pv->z + pv->w * pv->w
);
}
static inline FLOAT D3DXVec4LengthSq(CONST D3DXVECTOR4 *pv)
...
...
@@ -1283,7 +1283,7 @@ static inline BOOL D3DXQuaternionIsIdentity(D3DXQUATERNION *pq)
static inline FLOAT D3DXQuaternionLength(CONST D3DXQUATERNION *pq)
{
if (!pq) return 0.0f;
return sqrt
( (pq->x) * (pq->x) + (pq->y) * (pq->y) + (pq->z) * (pq->z) + (pq->w) * (pq->w)
);
return sqrt
f( pq->x * pq->x + pq->y * pq->y + pq->z * pq->z + pq->w * pq->w
);
}
static inline FLOAT D3DXQuaternionLengthSq(CONST D3DXQUATERNION *pq)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment