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
e2d35536
Commit
e2d35536
authored
Apr 04, 2013
by
Nozomi Kodama
Committed by
Alexandre Julliard
Apr 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Floatify sqrt into sqrtf.
parent
574d4cfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
math.c
dlls/d3dx9_36/math.c
+34
-34
No files found.
dlls/d3dx9_36/math.c
View file @
e2d35536
...
...
@@ -2394,54 +2394,54 @@ FLOAT* WINAPI D3DXSHEvalDirection(FLOAT *out, UINT order, const D3DXVECTOR3 *dir
if
((
order
<
D3DXSH_MINORDER
)
||
(
order
>
D3DXSH_MAXORDER
))
return
out
;
out
[
0
]
=
0
.
5
f
/
sqrt
(
D3DX_PI
);
out
[
1
]
=
-
0
.
5
f
/
sqrt
(
D3DX_PI
/
3
.
0
f
)
*
dir
->
y
;
out
[
2
]
=
0
.
5
f
/
sqrt
(
D3DX_PI
/
3
.
0
f
)
*
dir
->
z
;
out
[
3
]
=
-
0
.
5
f
/
sqrt
(
D3DX_PI
/
3
.
0
f
)
*
dir
->
x
;
out
[
0
]
=
0
.
5
f
/
sqrt
f
(
D3DX_PI
);
out
[
1
]
=
-
0
.
5
f
/
sqrt
f
(
D3DX_PI
/
3
.
0
f
)
*
dir
->
y
;
out
[
2
]
=
0
.
5
f
/
sqrt
f
(
D3DX_PI
/
3
.
0
f
)
*
dir
->
z
;
out
[
3
]
=
-
0
.
5
f
/
sqrt
f
(
D3DX_PI
/
3
.
0
f
)
*
dir
->
x
;
if
(
order
==
2
)
return
out
;
out
[
4
]
=
0
.
5
f
/
sqrt
(
D3DX_PI
/
15
.
0
f
)
*
dirxy
;
out
[
5
]
=
-
0
.
5
f
/
sqrt
(
D3DX_PI
/
15
.
0
f
)
*
diryz
;
out
[
6
]
=
0
.
25
f
/
sqrt
(
D3DX_PI
/
5
.
0
f
)
*
(
3
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
7
]
=
-
0
.
5
f
/
sqrt
(
D3DX_PI
/
15
.
0
f
)
*
dirxz
;
out
[
8
]
=
0
.
25
f
/
sqrt
(
D3DX_PI
/
15
.
0
f
)
*
(
dirxx
-
diryy
);
out
[
4
]
=
0
.
5
f
/
sqrt
f
(
D3DX_PI
/
15
.
0
f
)
*
dirxy
;
out
[
5
]
=
-
0
.
5
f
/
sqrt
f
(
D3DX_PI
/
15
.
0
f
)
*
diryz
;
out
[
6
]
=
0
.
25
f
/
sqrt
f
(
D3DX_PI
/
5
.
0
f
)
*
(
3
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
7
]
=
-
0
.
5
f
/
sqrt
f
(
D3DX_PI
/
15
.
0
f
)
*
dirxz
;
out
[
8
]
=
0
.
25
f
/
sqrt
f
(
D3DX_PI
/
15
.
0
f
)
*
(
dirxx
-
diryy
);
if
(
order
==
3
)
return
out
;
out
[
9
]
=
-
sqrt
(
70
.
0
f
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
y
*
(
3
.
0
f
*
dirxx
-
diryy
);
out
[
10
]
=
sqrt
(
105
.
0
f
/
D3DX_PI
)
/
2
.
0
f
*
dirxy
*
dir
->
z
;
out
[
11
]
=
-
sqrt
(
42
.
0
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
y
*
(
-
1
.
0
f
+
5
.
0
f
*
dirzz
);
out
[
12
]
=
sqrt
(
7
.
0
f
/
D3DX_PI
)
/
4
.
0
f
*
dir
->
z
*
(
5
.
0
f
*
dirzz
-
3
.
0
f
);
out
[
13
]
=
sqrt
(
42
.
0
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
x
*
(
1
.
0
f
-
5
.
0
f
*
dirzz
);
out
[
14
]
=
sqrt
(
105
.
0
f
/
D3DX_PI
)
/
4
.
0
f
*
dir
->
z
*
(
dirxx
-
diryy
);
out
[
15
]
=
-
sqrt
(
70
.
0
f
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
x
*
(
dirxx
-
3
.
0
f
*
diryy
);
out
[
9
]
=
-
sqrt
f
(
70
.
0
f
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
y
*
(
3
.
0
f
*
dirxx
-
diryy
);
out
[
10
]
=
sqrt
f
(
105
.
0
f
/
D3DX_PI
)
/
2
.
0
f
*
dirxy
*
dir
->
z
;
out
[
11
]
=
-
sqrt
f
(
42
.
0
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
y
*
(
-
1
.
0
f
+
5
.
0
f
*
dirzz
);
out
[
12
]
=
sqrt
f
(
7
.
0
f
/
D3DX_PI
)
/
4
.
0
f
*
dir
->
z
*
(
5
.
0
f
*
dirzz
-
3
.
0
f
);
out
[
13
]
=
sqrt
f
(
42
.
0
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
x
*
(
1
.
0
f
-
5
.
0
f
*
dirzz
);
out
[
14
]
=
sqrt
f
(
105
.
0
f
/
D3DX_PI
)
/
4
.
0
f
*
dir
->
z
*
(
dirxx
-
diryy
);
out
[
15
]
=
-
sqrt
f
(
70
.
0
f
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
x
*
(
dirxx
-
3
.
0
f
*
diryy
);
if
(
order
==
4
)
return
out
;
out
[
16
]
=
0
.
75
f
*
sqrt
(
35
.
0
f
/
D3DX_PI
)
*
dirxy
*
(
dirxx
-
diryy
);
out
[
16
]
=
0
.
75
f
*
sqrt
f
(
35
.
0
f
/
D3DX_PI
)
*
dirxy
*
(
dirxx
-
diryy
);
out
[
17
]
=
3
.
0
f
*
dir
->
z
*
out
[
9
];
out
[
18
]
=
0
.
75
f
*
sqrt
(
5
.
0
f
/
D3DX_PI
)
*
dirxy
*
(
7
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
19
]
=
0
.
375
f
*
sqrt
(
10
.
0
f
/
D3DX_PI
)
*
diryz
*
(
3
.
0
f
-
7
.
0
f
*
dirzz
);
out
[
20
]
=
3
.
0
f
/
(
16
.
0
f
*
sqrt
(
D3DX_PI
))
*
(
35
.
0
f
*
dirzzzz
-
30
.
f
*
dirzz
+
3
.
0
f
);
out
[
21
]
=
0
.
375
f
*
sqrt
(
10
.
0
f
/
D3DX_PI
)
*
dirxz
*
(
3
.
0
f
-
7
.
0
f
*
dirzz
);
out
[
22
]
=
0
.
375
f
*
sqrt
(
5
.
0
f
/
D3DX_PI
)
*
(
dirxx
-
diryy
)
*
(
7
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
18
]
=
0
.
75
f
*
sqrt
f
(
5
.
0
f
/
D3DX_PI
)
*
dirxy
*
(
7
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
19
]
=
0
.
375
f
*
sqrt
f
(
10
.
0
f
/
D3DX_PI
)
*
diryz
*
(
3
.
0
f
-
7
.
0
f
*
dirzz
);
out
[
20
]
=
3
.
0
f
/
(
16
.
0
f
*
sqrt
f
(
D3DX_PI
))
*
(
35
.
0
f
*
dirzzzz
-
30
.
f
*
dirzz
+
3
.
0
f
);
out
[
21
]
=
0
.
375
f
*
sqrt
f
(
10
.
0
f
/
D3DX_PI
)
*
dirxz
*
(
3
.
0
f
-
7
.
0
f
*
dirzz
);
out
[
22
]
=
0
.
375
f
*
sqrt
f
(
5
.
0
f
/
D3DX_PI
)
*
(
dirxx
-
diryy
)
*
(
7
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
23
]
=
3
.
0
*
dir
->
z
*
out
[
15
];
out
[
24
]
=
3
.
0
f
/
16
.
0
f
*
sqrt
(
35
.
0
f
/
D3DX_PI
)
*
(
dirxxxx
-
6
.
0
f
*
dirxyxy
+
diryyyy
);
out
[
24
]
=
3
.
0
f
/
16
.
0
f
*
sqrt
f
(
35
.
0
f
/
D3DX_PI
)
*
(
dirxxxx
-
6
.
0
f
*
dirxyxy
+
diryyyy
);
if
(
order
==
5
)
return
out
;
out
[
25
]
=
-
3
.
0
f
/
32
.
0
f
*
sqrt
(
154
.
0
f
/
D3DX_PI
)
*
dir
->
y
*
(
5
.
0
f
*
dirxxxx
-
10
.
0
f
*
dirxyxy
+
diryyyy
);
out
[
26
]
=
0
.
75
f
*
sqrt
(
385
.
0
f
/
D3DX_PI
)
*
dirxy
*
dir
->
z
*
(
dirxx
-
diryy
);
out
[
27
]
=
sqrt
(
770
.
0
f
/
D3DX_PI
)
/
32
.
0
f
*
dir
->
y
*
(
3
.
0
f
*
dirxx
-
diryy
)
*
(
1
.
0
f
-
9
.
0
f
*
dirzz
);
out
[
28
]
=
sqrt
(
1155
.
0
f
/
D3DX_PI
)
/
4
.
0
f
*
dirxy
*
dir
->
z
*
(
3
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
29
]
=
sqrt
(
165
.
0
f
/
D3DX_PI
)
/
16
.
0
f
*
dir
->
y
*
(
14
.
0
f
*
dirzz
-
21
.
0
f
*
dirzzzz
-
1
.
0
f
);
out
[
30
]
=
sqrt
(
11
.
0
f
/
D3DX_PI
)
/
16
.
0
f
*
dir
->
z
*
(
63
.
0
f
*
dirzzzz
-
70
.
0
f
*
dirzz
+
15
.
0
f
);
out
[
31
]
=
sqrt
(
165
.
0
f
/
D3DX_PI
)
/
16
.
0
f
*
dir
->
x
*
(
14
.
0
f
*
dirzz
-
21
.
0
f
*
dirzzzz
-
1
.
0
f
);
out
[
32
]
=
sqrt
(
1155
.
0
f
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
z
*
(
dirxx
-
diryy
)
*
(
3
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
33
]
=
sqrt
(
770
.
0
f
/
D3DX_PI
)
/
32
.
0
f
*
dir
->
x
*
(
dirxx
-
3
.
0
f
*
diryy
)
*
(
1
.
0
f
-
9
.
0
f
*
dirzz
);
out
[
34
]
=
3
.
0
f
/
16
.
0
f
*
sqrt
(
385
.
0
f
/
D3DX_PI
)
*
dir
->
z
*
(
dirxxxx
-
6
.
0
*
dirxyxy
+
diryyyy
);
out
[
35
]
=
-
3
.
0
f
/
32
.
0
f
*
sqrt
(
154
.
0
f
/
D3DX_PI
)
*
dir
->
x
*
(
dirxxxx
-
10
.
0
f
*
dirxyxy
+
5
.
0
f
*
diryyyy
);
out
[
25
]
=
-
3
.
0
f
/
32
.
0
f
*
sqrt
f
(
154
.
0
f
/
D3DX_PI
)
*
dir
->
y
*
(
5
.
0
f
*
dirxxxx
-
10
.
0
f
*
dirxyxy
+
diryyyy
);
out
[
26
]
=
0
.
75
f
*
sqrt
f
(
385
.
0
f
/
D3DX_PI
)
*
dirxy
*
dir
->
z
*
(
dirxx
-
diryy
);
out
[
27
]
=
sqrt
f
(
770
.
0
f
/
D3DX_PI
)
/
32
.
0
f
*
dir
->
y
*
(
3
.
0
f
*
dirxx
-
diryy
)
*
(
1
.
0
f
-
9
.
0
f
*
dirzz
);
out
[
28
]
=
sqrt
f
(
1155
.
0
f
/
D3DX_PI
)
/
4
.
0
f
*
dirxy
*
dir
->
z
*
(
3
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
29
]
=
sqrt
f
(
165
.
0
f
/
D3DX_PI
)
/
16
.
0
f
*
dir
->
y
*
(
14
.
0
f
*
dirzz
-
21
.
0
f
*
dirzzzz
-
1
.
0
f
);
out
[
30
]
=
sqrt
f
(
11
.
0
f
/
D3DX_PI
)
/
16
.
0
f
*
dir
->
z
*
(
63
.
0
f
*
dirzzzz
-
70
.
0
f
*
dirzz
+
15
.
0
f
);
out
[
31
]
=
sqrt
f
(
165
.
0
f
/
D3DX_PI
)
/
16
.
0
f
*
dir
->
x
*
(
14
.
0
f
*
dirzz
-
21
.
0
f
*
dirzzzz
-
1
.
0
f
);
out
[
32
]
=
sqrt
f
(
1155
.
0
f
/
D3DX_PI
)
/
8
.
0
f
*
dir
->
z
*
(
dirxx
-
diryy
)
*
(
3
.
0
f
*
dirzz
-
1
.
0
f
);
out
[
33
]
=
sqrt
f
(
770
.
0
f
/
D3DX_PI
)
/
32
.
0
f
*
dir
->
x
*
(
dirxx
-
3
.
0
f
*
diryy
)
*
(
1
.
0
f
-
9
.
0
f
*
dirzz
);
out
[
34
]
=
3
.
0
f
/
16
.
0
f
*
sqrt
f
(
385
.
0
f
/
D3DX_PI
)
*
dir
->
z
*
(
dirxxxx
-
6
.
0
*
dirxyxy
+
diryyyy
);
out
[
35
]
=
-
3
.
0
f
/
32
.
0
f
*
sqrt
f
(
154
.
0
f
/
D3DX_PI
)
*
dir
->
x
*
(
dirxxxx
-
10
.
0
f
*
dirxyxy
+
5
.
0
f
*
diryyyy
);
return
out
;
}
...
...
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