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
90b04c7b
Commit
90b04c7b
authored
Nov 17, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36/tests: Fix compilation on systems that don't support nameless unions.
parent
919bd612
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
96 deletions
+96
-96
math.c
dlls/d3dx9_36/tests/math.c
+96
-96
No files found.
dlls/d3dx9_36/tests/math.c
View file @
90b04c7b
...
...
@@ -137,22 +137,22 @@ static void test_Matrix_AffineTransformation2D(void)
scale
=
20
.
0
f
;
exp_mat
.
m
[
0
][
0
]
=
10
.
0
f
;
exp_mat
.
m
[
1
][
0
]
=
-
17
.
320507
f
;
exp_mat
.
m
[
2
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
0
]
=
-
1
.
035
898
f
;
exp_mat
.
m
[
0
][
1
]
=
17
.
320507
f
;
exp_mat
.
m
[
1
][
1
]
=
10
.
0
f
;
exp_mat
.
m
[
2
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
1
]
=
6
.
401924
f
;
exp_mat
.
m
[
0
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
2
]
=
20
.
0
f
;
exp_mat
.
m
[
3
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
0
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
3
]
=
1
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
0
]
=
10
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
0
]
=
-
17
.
320507
f
;
U
(
exp_mat
)
.
m
[
2
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
0
]
=
-
1
.
035
898
f
;
U
(
exp_mat
)
.
m
[
0
][
1
]
=
17
.
320507
f
;
U
(
exp_mat
)
.
m
[
1
][
1
]
=
10
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
1
]
=
6
.
401924
f
;
U
(
exp_mat
)
.
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
2
]
=
20
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixAffineTransformation2D
(
&
got_mat
,
scale
,
&
center
,
angle
,
&
position
);
...
...
@@ -167,22 +167,22 @@ static void test_Matrix_AffineTransformation2D(void)
scale
=
20
.
0
f
;
exp_mat
.
m
[
0
][
0
]
=
10
.
0
f
;
exp_mat
.
m
[
1
][
0
]
=
-
17
.
320507
f
;
exp_mat
.
m
[
2
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
0
]
=
4
.
964102
f
;
exp_mat
.
m
[
0
][
1
]
=
17
.
320507
f
;
exp_mat
.
m
[
1
][
1
]
=
10
.
0
f
;
exp_mat
.
m
[
2
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
1
]
=
-
0
.
598076
f
;
exp_mat
.
m
[
0
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
2
]
=
20
.
0
f
;
exp_mat
.
m
[
3
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
0
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
3
]
=
1
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
0
]
=
10
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
0
]
=
-
17
.
320507
f
;
U
(
exp_mat
)
.
m
[
2
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
0
]
=
4
.
964102
f
;
U
(
exp_mat
)
.
m
[
0
][
1
]
=
17
.
320507
f
;
U
(
exp_mat
)
.
m
[
1
][
1
]
=
10
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
1
]
=
-
0
.
598076
f
;
U
(
exp_mat
)
.
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
2
]
=
20
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixAffineTransformation2D
(
&
got_mat
,
scale
,
&
center
,
angle
,
NULL
);
...
...
@@ -197,22 +197,22 @@ static void test_Matrix_AffineTransformation2D(void)
scale
=
20
.
0
f
;
exp_mat
.
m
[
0
][
0
]
=
10
.
0
f
;
exp_mat
.
m
[
1
][
0
]
=
-
17
.
320507
f
;
exp_mat
.
m
[
2
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
0
]
=
-
6
.
0
f
;
exp_mat
.
m
[
0
][
1
]
=
17
.
320507
f
;
exp_mat
.
m
[
1
][
1
]
=
10
.
0
f
;
exp_mat
.
m
[
2
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
1
]
=
7
.
0
f
;
exp_mat
.
m
[
0
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
2
]
=
20
.
0
f
;
exp_mat
.
m
[
3
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
0
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
3
]
=
1
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
0
]
=
10
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
0
]
=
-
17
.
320507
f
;
U
(
exp_mat
)
.
m
[
2
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
0
]
=
-
6
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
1
]
=
17
.
320507
f
;
U
(
exp_mat
)
.
m
[
1
][
1
]
=
10
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
1
]
=
7
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
2
]
=
20
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixAffineTransformation2D
(
&
got_mat
,
scale
,
NULL
,
angle
,
&
position
);
...
...
@@ -224,22 +224,22 @@ static void test_Matrix_AffineTransformation2D(void)
scale
=
-
20
.
0
f
;
exp_mat
.
m
[
0
][
0
]
=
14
.
142133
f
;
exp_mat
.
m
[
1
][
0
]
=
-
14
.
142133
f
;
exp_mat
.
m
[
2
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
0
][
1
]
=
14
.
142133
;
exp_mat
.
m
[
1
][
1
]
=
14
.
142133
f
;
exp_mat
.
m
[
2
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
0
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
2
]
=
-
20
.
0
f
;
exp_mat
.
m
[
3
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
0
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
3
]
=
1
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
0
]
=
14
.
142133
f
;
U
(
exp_mat
)
.
m
[
1
][
0
]
=
-
14
.
142133
f
;
U
(
exp_mat
)
.
m
[
2
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
1
]
=
14
.
142133
;
U
(
exp_mat
)
.
m
[
1
][
1
]
=
14
.
142133
f
;
U
(
exp_mat
)
.
m
[
2
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
2
]
=
-
20
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixAffineTransformation2D
(
&
got_mat
,
scale
,
NULL
,
angle
,
NULL
);
...
...
@@ -607,22 +607,22 @@ static void test_Matrix_Transformation2D(void)
sca_rot
=
5
.
0
f
*
D3DX_PI
/
4
.
0
f
;
exp_mat
.
m
[
0
][
0
]
=
-
4
.
245192
f
;
exp_mat
.
m
[
1
][
0
]
=
-
0
.
147116
f
;
exp_mat
.
m
[
2
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
0
]
=
45
.
265373
f
;
exp_mat
.
m
[
0
][
1
]
=
7
.
647113
f
;
exp_mat
.
m
[
1
][
1
]
=
8
.
745192
f
;
exp_mat
.
m
[
2
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
1
]
=
-
13
.
401899
f
;
exp_mat
.
m
[
0
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
0
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
3
]
=
1
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
0
]
=
-
4
.
245192
f
;
U
(
exp_mat
)
.
m
[
1
][
0
]
=
-
0
.
147116
f
;
U
(
exp_mat
)
.
m
[
2
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
0
]
=
45
.
265373
f
;
U
(
exp_mat
)
.
m
[
0
][
1
]
=
7
.
647113
f
;
U
(
exp_mat
)
.
m
[
1
][
1
]
=
8
.
745192
f
;
U
(
exp_mat
)
.
m
[
2
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
1
]
=
-
13
.
401899
f
;
U
(
exp_mat
)
.
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixTransformation2D
(
&
got_mat
,
&
sca_center
,
sca_rot
,
&
sca
,
&
rot_center
,
rot
,
&
trans
);
...
...
@@ -640,22 +640,22 @@ static void test_Matrix_Transformation2D(void)
sca_rot
=
5
.
0
f
*
D3DX_PI
/
4
.
0
f
;
exp_mat
.
m
[
0
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
0
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
0
]
=
2
.
830127
f
;
exp_mat
.
m
[
0
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
1
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
1
]
=
12
.
294229
f
;
exp_mat
.
m
[
0
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
2
]
=
0
.
0
f
;
exp_mat
.
m
[
0
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
1
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
2
][
3
]
=
0
.
0
f
;
exp_mat
.
m
[
3
][
3
]
=
1
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
0
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
0
]
=
2
.
830127
f
;
U
(
exp_mat
)
.
m
[
0
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
1
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
1
]
=
12
.
294229
f
;
U
(
exp_mat
)
.
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
1
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
2
][
3
]
=
0
.
0
f
;
U
(
exp_mat
)
.
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixTransformation2D
(
&
got_mat
,
&
sca_center
,
sca_rot
,
NULL
,
NULL
,
rot
,
&
trans
);
...
...
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