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
13b16116
Commit
13b16116
authored
Dec 01, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Dec 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Improve performance of matrix multiplication by unrolling loop.
parent
a97911fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
matrix.c
dlls/gdiplus/matrix.c
+7
-9
No files found.
dlls/gdiplus/matrix.c
View file @
13b16116
...
...
@@ -39,17 +39,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
*
* and puts the output in out.
* */
static
void
matrix_multiply
(
GDIPCONST
REAL
*
left
,
GDIPCONST
REAL
*
right
,
REAL
*
out
)
static
inline
void
matrix_multiply
(
GDIPCONST
REAL
*
left
,
GDIPCONST
REAL
*
right
,
REAL
*
out
)
{
REAL
temp
[
6
];
int
i
,
odd
;
for
(
i
=
0
;
i
<
6
;
i
++
){
odd
=
i
%
2
;
temp
[
i
]
=
left
[
i
-
odd
]
*
right
[
odd
]
+
left
[
i
-
odd
+
1
]
*
right
[
odd
+
2
]
+
(
i
>=
4
?
right
[
odd
+
4
]
:
0
.
0
);
}
temp
[
0
]
=
left
[
0
]
*
right
[
0
]
+
left
[
1
]
*
right
[
2
];
temp
[
1
]
=
left
[
0
]
*
right
[
1
]
+
left
[
1
]
*
right
[
3
];
temp
[
2
]
=
left
[
2
]
*
right
[
0
]
+
left
[
3
]
*
right
[
2
];
temp
[
3
]
=
left
[
2
]
*
right
[
1
]
+
left
[
3
]
*
right
[
3
];
temp
[
4
]
=
left
[
4
]
*
right
[
0
]
+
left
[
5
]
*
right
[
2
]
+
right
[
4
];
temp
[
5
]
=
left
[
4
]
*
right
[
1
]
+
left
[
5
]
*
right
[
3
]
+
right
[
5
];
memcpy
(
out
,
temp
,
6
*
sizeof
(
REAL
));
}
...
...
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