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
c1862338
Commit
c1862338
authored
Nov 30, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8/tests: Fix compilation on systems that don't support nameless unions.
parent
abf52403
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
math.c
dlls/d3dx8/tests/math.c
+27
-27
No files found.
dlls/d3dx8/tests/math.c
View file @
c1862338
...
...
@@ -200,17 +200,17 @@ static void D3DXMatrixTest(void)
angle
=
D3DX_PI
/
3
.
0
f
;
/*____________D3DXMatrixAffineTransformation______*/
expectedmat
.
m
[
0
][
0
]
=
-
459
.
239990
f
;
expectedmat
.
m
[
0
][
1
]
=
-
576
.
719971
f
;
expectedmat
.
m
[
0
][
2
]
=
-
263
.
440002
f
;
expectedmat
.
m
[
0
][
3
]
=
0
.
0
f
;
expectedmat
.
m
[
1
][
0
]
=
519
.
760010
f
;
expectedmat
.
m
[
1
][
1
]
=
-
352
.
440002
f
;
expectedmat
.
m
[
1
][
2
]
=
-
277
.
679993
f
;
expectedmat
.
m
[
1
][
3
]
=
0
.
0
f
;
expectedmat
.
m
[
2
][
0
]
=
363
.
119995
f
;
expectedmat
.
m
[
2
][
1
]
=
-
121
.
040001
f
;
expectedmat
.
m
[
2
][
2
]
=
-
117
.
479996
f
;
expectedmat
.
m
[
2
][
3
]
=
0
.
0
f
;
expectedmat
.
m
[
3
][
0
]
=
-
1239
.
0
f
;
expectedmat
.
m
[
3
][
1
]
=
667
.
0
f
;
expectedmat
.
m
[
3
][
2
]
=
567
.
0
f
;
expectedmat
.
m
[
3
][
3
]
=
1
.
0
f
;
U
(
expectedmat
).
m
[
0
][
0
]
=
-
459
.
239990
f
;
U
(
expectedmat
).
m
[
0
][
1
]
=
-
576
.
719971
f
;
U
(
expectedmat
).
m
[
0
][
2
]
=
-
263
.
440002
f
;
U
(
expectedmat
)
.
m
[
0
][
3
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
1
][
0
]
=
519
.
760010
f
;
U
(
expectedmat
).
m
[
1
][
1
]
=
-
352
.
440002
f
;
U
(
expectedmat
).
m
[
1
][
2
]
=
-
277
.
679993
f
;
U
(
expectedmat
)
.
m
[
1
][
3
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
2
][
0
]
=
363
.
119995
f
;
U
(
expectedmat
).
m
[
2
][
1
]
=
-
121
.
040001
f
;
U
(
expectedmat
).
m
[
2
][
2
]
=
-
117
.
479996
f
;
U
(
expectedmat
)
.
m
[
2
][
3
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
3
][
0
]
=
-
1239
.
0
f
;
U
(
expectedmat
).
m
[
3
][
1
]
=
667
.
0
f
;
U
(
expectedmat
).
m
[
3
][
2
]
=
567
.
0
f
;
U
(
expectedmat
)
.
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixAffineTransformation
(
&
gotmat
,
3
.
56
f
,
&
at
,
&
q
,
&
axis
);
expect_mat
(
expectedmat
,
gotmat
);
/* Test the NULL case */
expectedmat
.
m
[
0
][
0
]
=
-
459
.
239990
f
;
expectedmat
.
m
[
0
][
1
]
=
-
576
.
719971
f
;
expectedmat
.
m
[
0
][
2
]
=
-
263
.
440002
f
;
expectedmat
.
m
[
0
][
3
]
=
0
.
0
f
;
expectedmat
.
m
[
1
][
0
]
=
519
.
760010
f
;
expectedmat
.
m
[
1
][
1
]
=
-
352
.
440002
f
;
expectedmat
.
m
[
1
][
2
]
=
-
277
.
679993
f
;
expectedmat
.
m
[
1
][
3
]
=
0
.
0
f
;
expectedmat
.
m
[
2
][
0
]
=
363
.
119995
f
;
expectedmat
.
m
[
2
][
1
]
=
-
121
.
040001
f
;
expectedmat
.
m
[
2
][
2
]
=
-
117
.
479996
f
;
expectedmat
.
m
[
2
][
3
]
=
0
.
0
f
;
expectedmat
.
m
[
3
][
0
]
=
1
.
0
f
;
expectedmat
.
m
[
3
][
1
]
=
-
3
.
0
f
;
expectedmat
.
m
[
3
][
2
]
=
7
.
0
f
;
expectedmat
.
m
[
3
][
3
]
=
1
.
0
f
;
U
(
expectedmat
).
m
[
0
][
0
]
=
-
459
.
239990
f
;
U
(
expectedmat
).
m
[
0
][
1
]
=
-
576
.
719971
f
;
U
(
expectedmat
).
m
[
0
][
2
]
=
-
263
.
440002
f
;
U
(
expectedmat
)
.
m
[
0
][
3
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
1
][
0
]
=
519
.
760010
f
;
U
(
expectedmat
).
m
[
1
][
1
]
=
-
352
.
440002
f
;
U
(
expectedmat
).
m
[
1
][
2
]
=
-
277
.
679993
f
;
U
(
expectedmat
)
.
m
[
1
][
3
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
2
][
0
]
=
363
.
119995
f
;
U
(
expectedmat
).
m
[
2
][
1
]
=
-
121
.
040001
f
;
U
(
expectedmat
).
m
[
2
][
2
]
=
-
117
.
479996
f
;
U
(
expectedmat
)
.
m
[
2
][
3
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
3
][
0
]
=
1
.
0
f
;
U
(
expectedmat
).
m
[
3
][
1
]
=
-
3
.
0
f
;
U
(
expectedmat
).
m
[
3
][
2
]
=
7
.
0
f
;
U
(
expectedmat
)
.
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixAffineTransformation
(
&
gotmat
,
3
.
56
f
,
NULL
,
&
q
,
&
axis
);
expect_mat
(
expectedmat
,
gotmat
);
...
...
@@ -220,10 +220,10 @@ static void D3DXMatrixTest(void)
ok
(
fabs
(
gotfloat
-
expectedfloat
)
<
admitted_error
,
"Expected: %f, Got: %f
\n
"
,
expectedfloat
,
gotfloat
);
/*____________D3DXMatrixInverse______________*/
expectedmat
.
m
[
0
][
0
]
=
16067
.
0
f
/
73944
.
0
f
;
expectedmat
.
m
[
0
][
1
]
=
-
10165
.
0
f
/
147888
.
0
f
;
expectedmat
.
m
[
0
][
2
]
=
-
2729
.
0
f
/
147888
.
0
f
;
expectedmat
.
m
[
0
][
3
]
=
-
1631
.
0
f
/
49296
.
0
f
;
expectedmat
.
m
[
1
][
0
]
=
-
565
.
0
f
/
36972
.
0
f
;
expectedmat
.
m
[
1
][
1
]
=
2723
.
0
f
/
73944
.
0
f
;
expectedmat
.
m
[
1
][
2
]
=
-
1073
.
0
f
/
73944
.
0
f
;
expectedmat
.
m
[
1
][
3
]
=
289
.
0
f
/
24648
.
0
f
;
expectedmat
.
m
[
2
][
0
]
=
-
389
.
0
f
/
2054
.
0
f
;
expectedmat
.
m
[
2
][
1
]
=
337
.
0
f
/
4108
.
0
f
;
expectedmat
.
m
[
2
][
2
]
=
181
.
0
f
/
4108
.
0
f
;
expectedmat
.
m
[
2
][
3
]
=
317
.
0
f
/
4108
.
0
f
;
expectedmat
.
m
[
3
][
0
]
=
163
.
0
f
/
5688
.
0
f
;
expectedmat
.
m
[
3
][
1
]
=
-
101
.
0
f
/
11376
.
0
f
;
expectedmat
.
m
[
3
][
2
]
=
-
73
.
0
f
/
11376
.
0
f
;
expectedmat
.
m
[
3
][
3
]
=
-
127
.
0
f
/
3792
.
0
f
;
U
(
expectedmat
).
m
[
0
][
0
]
=
16067
.
0
f
/
73944
.
0
f
;
U
(
expectedmat
).
m
[
0
][
1
]
=
-
10165
.
0
f
/
147888
.
0
f
;
U
(
expectedmat
).
m
[
0
][
2
]
=
-
2729
.
0
f
/
147888
.
0
f
;
U
(
expectedmat
)
.
m
[
0
][
3
]
=
-
1631
.
0
f
/
49296
.
0
f
;
U
(
expectedmat
).
m
[
1
][
0
]
=
-
565
.
0
f
/
36972
.
0
f
;
U
(
expectedmat
).
m
[
1
][
1
]
=
2723
.
0
f
/
73944
.
0
f
;
U
(
expectedmat
).
m
[
1
][
2
]
=
-
1073
.
0
f
/
73944
.
0
f
;
U
(
expectedmat
)
.
m
[
1
][
3
]
=
289
.
0
f
/
24648
.
0
f
;
U
(
expectedmat
).
m
[
2
][
0
]
=
-
389
.
0
f
/
2054
.
0
f
;
U
(
expectedmat
).
m
[
2
][
1
]
=
337
.
0
f
/
4108
.
0
f
;
U
(
expectedmat
).
m
[
2
][
2
]
=
181
.
0
f
/
4108
.
0
f
;
U
(
expectedmat
)
.
m
[
2
][
3
]
=
317
.
0
f
/
4108
.
0
f
;
U
(
expectedmat
).
m
[
3
][
0
]
=
163
.
0
f
/
5688
.
0
f
;
U
(
expectedmat
).
m
[
3
][
1
]
=
-
101
.
0
f
/
11376
.
0
f
;
U
(
expectedmat
).
m
[
3
][
2
]
=
-
73
.
0
f
/
11376
.
0
f
;
U
(
expectedmat
)
.
m
[
3
][
3
]
=
-
127
.
0
f
/
3792
.
0
f
;
expectedfloat
=
-
147888
.
0
f
;
D3DXMatrixInverse
(
&
gotmat
,
&
determinant
,
&
mat
);
expect_mat
(
expectedmat
,
gotmat
);
...
...
@@ -273,10 +273,10 @@ static void D3DXMatrixTest(void)
expect_mat
(
expectedmat
,
gotmat
);
/*____________D3DXMatrixMultiplyTranspose____*/
expectedmat
.
m
[
0
][
0
]
=
73
.
0
f
;
expectedmat
.
m
[
0
][
1
]
=
231
.
0
f
;
expectedmat
.
m
[
0
][
2
]
=
239
.
0
f
;
expectedmat
.
m
[
0
][
3
]
=
-
164
.
0
f
;
expectedmat
.
m
[
1
][
0
]
=
193
.
0
f
;
expectedmat
.
m
[
1
][
1
]
=
551
.
0
f
;
expectedmat
.
m
[
1
][
2
]
=
523
.
0
f
;
expectedmat
.
m
[
1
][
3
]
=
-
320
.
0
;
expectedmat
.
m
[
2
][
0
]
=
-
197
.
0
f
;
expectedmat
.
m
[
2
][
1
]
=
-
489
.
0
f
;
expectedmat
.
m
[
2
][
2
]
=
-
400
.
0
f
;
expectedmat
.
m
[
2
][
3
]
=
187
.
0
f
;
expectedmat
.
m
[
3
][
0
]
=
-
77
.
0
f
;
expectedmat
.
m
[
3
][
1
]
=
-
169
.
0
f
;
expectedmat
.
m
[
3
][
2
]
=
-
116
.
0
f
;
expectedmat
.
m
[
3
][
3
]
=
31
.
0
f
;
U
(
expectedmat
).
m
[
0
][
0
]
=
73
.
0
f
;
U
(
expectedmat
).
m
[
0
][
1
]
=
231
.
0
f
;
U
(
expectedmat
).
m
[
0
][
2
]
=
239
.
0
f
;
U
(
expectedmat
)
.
m
[
0
][
3
]
=
-
164
.
0
f
;
U
(
expectedmat
).
m
[
1
][
0
]
=
193
.
0
f
;
U
(
expectedmat
).
m
[
1
][
1
]
=
551
.
0
f
;
U
(
expectedmat
).
m
[
1
][
2
]
=
523
.
0
f
;
U
(
expectedmat
)
.
m
[
1
][
3
]
=
-
320
.
0
;
U
(
expectedmat
).
m
[
2
][
0
]
=
-
197
.
0
f
;
U
(
expectedmat
).
m
[
2
][
1
]
=
-
489
.
0
f
;
U
(
expectedmat
).
m
[
2
][
2
]
=
-
400
.
0
f
;
U
(
expectedmat
)
.
m
[
2
][
3
]
=
187
.
0
f
;
U
(
expectedmat
).
m
[
3
][
0
]
=
-
77
.
0
f
;
U
(
expectedmat
).
m
[
3
][
1
]
=
-
169
.
0
f
;
U
(
expectedmat
).
m
[
3
][
2
]
=
-
116
.
0
f
;
U
(
expectedmat
)
.
m
[
3
][
3
]
=
31
.
0
f
;
D3DXMatrixMultiplyTranspose
(
&
gotmat
,
&
mat
,
&
mat2
);
expect_mat
(
expectedmat
,
gotmat
);
...
...
@@ -975,17 +975,17 @@ static void D3X8Vector3Test(void)
U
(
mat
).
m
[
2
][
0
]
=
9
.
0
f
;
U
(
mat
).
m
[
2
][
1
]
=
10
.
0
f
;
U
(
mat
).
m
[
2
][
2
]
=
11
.
0
f
;
U
(
mat
).
m
[
2
][
3
]
=
12
.
0
f
;
U
(
mat
).
m
[
3
][
0
]
=
13
.
0
f
;
U
(
mat
).
m
[
3
][
1
]
=
14
.
0
f
;
U
(
mat
).
m
[
3
][
2
]
=
15
.
0
f
;
U
(
mat
).
m
[
3
][
3
]
=
16
.
0
f
;
view
.
m
[
0
][
1
]
=
5
.
0
f
;
view
.
m
[
0
][
2
]
=
7
.
0
f
;
view
.
m
[
0
][
3
]
=
8
.
0
f
;
view
.
m
[
1
][
0
]
=
11
.
0
f
;
view
.
m
[
1
][
2
]
=
16
.
0
f
;
view
.
m
[
1
][
3
]
=
33
.
0
f
;
view
.
m
[
2
][
0
]
=
19
.
0
f
;
view
.
m
[
2
][
1
]
=
-
21
.
0
f
;
view
.
m
[
2
][
3
]
=
43
.
0
f
;
view
.
m
[
3
][
0
]
=
2
.
0
f
;
view
.
m
[
3
][
1
]
=
3
.
0
f
;
view
.
m
[
3
][
2
]
=
-
4
.
0
f
;
view
.
m
[
0
][
0
]
=
10
.
0
f
;
view
.
m
[
1
][
1
]
=
20
.
0
f
;
view
.
m
[
2
][
2
]
=
30
.
0
f
;
view
.
m
[
3
][
3
]
=
-
40
.
0
f
;
world
.
m
[
0
][
0
]
=
21
.
0
f
;
world
.
m
[
0
][
1
]
=
2
.
0
f
;
world
.
m
[
0
][
2
]
=
3
.
0
f
;
world
.
m
[
0
][
3
]
=
4
.
0
;
world
.
m
[
1
][
0
]
=
5
.
0
f
;
world
.
m
[
1
][
1
]
=
23
.
0
f
;
world
.
m
[
1
][
2
]
=
7
.
0
f
;
world
.
m
[
1
][
3
]
=
8
.
0
f
;
world
.
m
[
2
][
0
]
=
-
8
.
0
f
;
world
.
m
[
2
][
1
]
=
-
7
.
0
f
;
world
.
m
[
2
][
2
]
=
25
.
0
f
;
world
.
m
[
2
][
3
]
=
-
5
.
0
f
;
world
.
m
[
3
][
0
]
=
-
4
.
0
f
;
world
.
m
[
3
][
1
]
=
-
3
.
0
f
;
world
.
m
[
3
][
2
]
=
-
2
.
0
f
;
world
.
m
[
3
][
3
]
=
27
.
0
f
;
U
(
view
).
m
[
0
][
1
]
=
5
.
0
f
;
U
(
view
).
m
[
0
][
2
]
=
7
.
0
f
;
U
(
view
)
.
m
[
0
][
3
]
=
8
.
0
f
;
U
(
view
).
m
[
1
][
0
]
=
11
.
0
f
;
U
(
view
).
m
[
1
][
2
]
=
16
.
0
f
;
U
(
view
)
.
m
[
1
][
3
]
=
33
.
0
f
;
U
(
view
).
m
[
2
][
0
]
=
19
.
0
f
;
U
(
view
).
m
[
2
][
1
]
=
-
21
.
0
f
;
U
(
view
)
.
m
[
2
][
3
]
=
43
.
0
f
;
U
(
view
).
m
[
3
][
0
]
=
2
.
0
f
;
U
(
view
).
m
[
3
][
1
]
=
3
.
0
f
;
U
(
view
)
.
m
[
3
][
2
]
=
-
4
.
0
f
;
U
(
view
).
m
[
0
][
0
]
=
10
.
0
f
;
U
(
view
).
m
[
1
][
1
]
=
20
.
0
f
;
U
(
view
)
.
m
[
2
][
2
]
=
30
.
0
f
;
U
(
view
)
.
m
[
3
][
3
]
=
-
40
.
0
f
;
U
(
world
).
m
[
0
][
0
]
=
21
.
0
f
;
U
(
world
).
m
[
0
][
1
]
=
2
.
0
f
;
U
(
world
).
m
[
0
][
2
]
=
3
.
0
f
;
U
(
world
)
.
m
[
0
][
3
]
=
4
.
0
;
U
(
world
).
m
[
1
][
0
]
=
5
.
0
f
;
U
(
world
).
m
[
1
][
1
]
=
23
.
0
f
;
U
(
world
).
m
[
1
][
2
]
=
7
.
0
f
;
U
(
world
)
.
m
[
1
][
3
]
=
8
.
0
f
;
U
(
world
).
m
[
2
][
0
]
=
-
8
.
0
f
;
U
(
world
).
m
[
2
][
1
]
=
-
7
.
0
f
;
U
(
world
).
m
[
2
][
2
]
=
25
.
0
f
;
U
(
world
)
.
m
[
2
][
3
]
=
-
5
.
0
f
;
U
(
world
).
m
[
3
][
0
]
=
-
4
.
0
f
;
U
(
world
).
m
[
3
][
1
]
=
-
3
.
0
f
;
U
(
world
).
m
[
3
][
2
]
=
-
2
.
0
f
;
U
(
world
)
.
m
[
3
][
3
]
=
27
.
0
f
;
coeff1
=
2
.
0
f
;
coeff2
=
5
.
0
f
;
scale
=
-
6
.
5
f
;
...
...
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