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
b2e3e2e9
Commit
b2e3e2e9
authored
Jun 23, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36/tests: Simplify test_D3DXSHMultiply3().
parent
24409968
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
math.c
dlls/d3dx9_36/tests/math.c
+6
-11
No files found.
dlls/d3dx9_36/tests/math.c
View file @
b2e3e2e9
...
...
@@ -2403,10 +2403,11 @@ static void test_D3DXSHMultiply3(void)
{
unsigned
int
i
;
FLOAT
a
[
20
],
b
[
20
],
c
[
20
];
const
FLOAT
expected
[]
=
{
7
.
813913
f
,
2
.
256058
f
,
5
.
9484005
f
,
4
.
970894
f
,
2
.
899858
f
,
3
.
598946
f
,
1
.
726572
f
,
5
.
573538
f
,
0
.
622063
f
,
9
.
0
f
,
10
.
0
f
,
11
.
0
f
,
12
.
0
f
,
13
.
0
f
,
14
.
0
f
,
15
.
0
f
,
16
.
0
f
,
17
.
0
f
,
18
.
0
f
,
19
.
0
f
,
};
/* D3DXSHMultiply only modifies the first 9 elements of the array */
const
FLOAT
expected
[
20
]
=
{
7
.
813913
f
,
2
.
256058
f
,
5
.
9484005
f
,
4
.
970894
f
,
2
.
899858
f
,
3
.
598946
f
,
1
.
726572
f
,
5
.
573538
f
,
0
.
622063
f
,
9
.
0
f
,
10
.
0
f
,
11
.
0
f
,
12
.
0
f
,
13
.
0
f
,
14
.
0
f
,
15
.
0
f
,
16
.
0
f
,
17
.
0
f
,
18
.
0
f
,
19
.
0
f
};
for
(
i
=
0
;
i
<
20
;
i
++
)
{
...
...
@@ -2416,14 +2417,8 @@ static void test_D3DXSHMultiply3(void)
}
D3DXSHMultiply3
(
c
,
a
,
b
);
for
(
i
=
0
;
i
<
9
;
i
++
)
ok
(
relative_error
(
c
[
i
],
expected
[
i
])
<
admitted_error
,
"Expected[%d] = %f, received = %f
\n
"
,
i
,
expected
[
i
],
c
[
i
]);
/* D3DXSHMultiply does not modify the elements of the array after the nineth element */
for
(
i
=
8
;
i
<
19
;
i
++
)
for
(
i
=
0
;
i
<
20
;
i
++
)
ok
(
relative_error
(
c
[
i
],
expected
[
i
])
<
admitted_error
,
"Expected[%d] = %f, received = %f
\n
"
,
i
,
expected
[
i
],
c
[
i
]);
return
;
}
START_TEST
(
math
)
...
...
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