Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
49064869
Commit
49064869
authored
Sep 27, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36/tests: Avoid using fmaxf.
parent
bd7b345b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mesh.c
dlls/d3dx9_36/tests/mesh.c
+6
-6
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
49064869
...
...
@@ -6169,7 +6169,7 @@ static void check_vertex_components(int line, int mesh_number, int vertex_number
{
D3DXVECTOR2
*
got
=
(
D3DXVECTOR2
*
)(
got_ptr
+
decl_ptr
->
Offset
);
D3DXVECTOR2
*
exp
=
(
D3DXVECTOR2
*
)(
exp_ptr
+
decl_ptr
->
Offset
);
FLOAT
diff
=
fmaxf
(
fabsf
(
got
->
x
-
exp
->
x
),
fabsf
(
got
->
y
-
exp
->
y
));
FLOAT
diff
=
max
(
fabsf
(
got
->
x
-
exp
->
x
),
fabsf
(
got
->
y
-
exp
->
y
));
ok_
(
__FILE__
,
line
)(
diff
<=
FLT_EPSILON
,
"Mesh %d: Got (%f, %f) for vertex %d %s, expected (%f, %f).
\n
"
,
mesh_number
,
got
->
x
,
got
->
y
,
vertex_number
,
usage_strings
[
decl_ptr
->
Usage
],
exp
->
x
,
exp
->
y
);
break
;
...
...
@@ -6178,8 +6178,8 @@ static void check_vertex_components(int line, int mesh_number, int vertex_number
{
D3DXVECTOR3
*
got
=
(
D3DXVECTOR3
*
)(
got_ptr
+
decl_ptr
->
Offset
);
D3DXVECTOR3
*
exp
=
(
D3DXVECTOR3
*
)(
exp_ptr
+
decl_ptr
->
Offset
);
FLOAT
diff
=
fmaxf
(
fabsf
(
got
->
x
-
exp
->
x
),
fabsf
(
got
->
y
-
exp
->
y
));
diff
=
fmaxf
(
diff
,
fabsf
(
got
->
z
-
exp
->
z
));
FLOAT
diff
=
max
(
fabsf
(
got
->
x
-
exp
->
x
),
fabsf
(
got
->
y
-
exp
->
y
));
diff
=
max
(
diff
,
fabsf
(
got
->
z
-
exp
->
z
));
ok_
(
__FILE__
,
line
)(
diff
<=
FLT_EPSILON
,
"Mesh %d: Got (%f, %f, %f) for vertex %d %s, expected (%f, %f, %f).
\n
"
,
mesh_number
,
got
->
x
,
got
->
y
,
got
->
z
,
vertex_number
,
usage_strings
[
decl_ptr
->
Usage
],
exp
->
x
,
exp
->
y
,
exp
->
z
);
break
;
...
...
@@ -6188,9 +6188,9 @@ static void check_vertex_components(int line, int mesh_number, int vertex_number
{
D3DXVECTOR4
*
got
=
(
D3DXVECTOR4
*
)(
got_ptr
+
decl_ptr
->
Offset
);
D3DXVECTOR4
*
exp
=
(
D3DXVECTOR4
*
)(
exp_ptr
+
decl_ptr
->
Offset
);
FLOAT
diff
=
fmaxf
(
fabsf
(
got
->
x
-
exp
->
x
),
fabsf
(
got
->
y
-
exp
->
y
));
diff
=
fmaxf
(
diff
,
fabsf
(
got
->
z
-
exp
->
z
));
diff
=
fmaxf
(
diff
,
fabsf
(
got
->
w
-
exp
->
w
));
FLOAT
diff
=
max
(
fabsf
(
got
->
x
-
exp
->
x
),
fabsf
(
got
->
y
-
exp
->
y
));
diff
=
max
(
diff
,
fabsf
(
got
->
z
-
exp
->
z
));
diff
=
max
(
diff
,
fabsf
(
got
->
w
-
exp
->
w
));
ok_
(
__FILE__
,
line
)(
diff
<=
FLT_EPSILON
,
"Mesh %d: Got (%f, %f, %f, %f) for vertex %d %s, expected (%f, %f, %f, %f).
\n
"
,
mesh_number
,
got
->
x
,
got
->
y
,
got
->
z
,
got
->
w
,
vertex_number
,
usage_strings
[
decl_ptr
->
Usage
],
exp
->
x
,
exp
->
y
,
exp
->
z
,
got
->
w
);
break
;
...
...
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