Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
0922c6b0
Commit
0922c6b0
authored
Sep 22, 2022
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/lpc: use fused negative multiply-add instructions where useful
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
a1c6f4b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
lpc.asm
libavcodec/x86/lpc.asm
+15
-2
No files found.
libavcodec/x86/lpc.asm
View file @
0922c6b0
...
...
@@ -79,11 +79,12 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
.
loop_o
:
movapd
m1
,
m6
mulpd
m2
,
m0
,
m0
subpd
m1
,
m2
%if
cpuflag
(
avx2
)
fnmaddpd
m1
,
m0
,
m0
,
m1
vpermpd
m2
,
m1
,
q0123
%else
mulpd
m2
,
m0
,
m0
subpd
m1
,
m2
shufpd
m2
,
m1
,
m1
,
01
b
%endif
...
...
@@ -116,8 +117,12 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
.
loop_o_scalar
:
movapd
xm1
,
xm6
%if
cpuflag
(
avx2
)
fnmaddpd
xm1
,
xm0
,
xm0
,
xm1
%else
mulpd
xm2
,
xm0
,
xm0
subpd
xm1
,
xm2
%endif
cvtdq2pd
xm3
,
[
dataq
+
off1q
]
cvtdq2pd
xm4
,
[
dataq
+
off2q
]
...
...
@@ -174,8 +179,12 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
.
loop_e
:
movapd
m1
,
m6
%if
cpuflag
(
avx2
)
fnmaddpd
m1
,
m0
,
m0
,
m1
%else
mulpd
m2
,
m0
,
m0
subpd
m1
,
m2
%endif
%if
cpuflag
(
avx2
)
vpermpd
m2
,
m1
,
q0123
%else
...
...
@@ -210,8 +219,12 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
.
loop_e_scalar
:
movapd
xm1
,
xm6
%if
cpuflag
(
avx2
)
fnmaddpd
xm1
,
xm0
,
xm0
,
xm1
%else
mulpd
xm2
,
xm0
,
xm0
subpd
xm1
,
xm2
%endif
cvtdq2pd
xm3
,
[
dataq
+
off1q
]
cvtdq2pd
xm4
,
[
dataq
+
off2q
]
...
...
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