Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
dfd865e5
Commit
dfd865e5
authored
Apr 04, 2014
by
Christophe Gisquet
Committed by
Michael Niedermayer
Apr 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/synth_filter: remove the main loop when it's not needed
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3aac5fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
dcadsp.asm
libavcodec/x86/dcadsp.asm
+11
-0
No files found.
libavcodec/x86/dcadsp.asm
View file @
dfd865e5
...
@@ -311,9 +311,14 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
...
@@ -311,9 +311,14 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
sub
r5q
,
offmp
sub
r5q
,
offmp
and
r5q
,
-
64
and
r5q
,
-
64
shl
r5q
,
2
shl
r5q
,
2
%if
ARCH_X86_32
||
mmsize
<
32
mov
OFFQ
,
r5q
mov
OFFQ
,
r5q
%define
i
r5q
%define
i
r5q
mov
i
,
16
*
4
-
(
ARCH_X86_64
+
1
)
*
mmsize
; main loop counter
mov
i
,
16
*
4
-
(
ARCH_X86_64
+
1
)
*
mmsize
; main loop counter
%else
%define
i
0
%define
OFFQ
r5q
%endif
%define
buf2
synth_buf2q
%define
buf2
synth_buf2q
%if
ARCH_X86_32
%if
ARCH_X86_32
...
@@ -332,8 +337,10 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
...
@@ -332,8 +337,10 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
%define
j
r3q
%define
j
r3q
mov
win
,
windowm
mov
win
,
windowm
mov
ptr1
,
synth_bufm
mov
ptr1
,
synth_bufm
%if
ARCH_X86_32
||
mmsize
<
32
add
win
,
i
add
win
,
i
add
ptr1
,
i
add
ptr1
,
i
%endif
%else
; ARCH_X86_64
%else
; ARCH_X86_64
%define
ptr1
r6q
%define
ptr1
r6q
%define
ptr2
r7q
; must be loaded
%define
ptr2
r7q
; must be loaded
...
@@ -349,7 +356,9 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
...
@@ -349,7 +356,9 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
mov
ptr2
,
synth_bufmp
mov
ptr2
,
synth_bufmp
; prepare the inner loop counter
; prepare the inner loop counter
mov
j
,
OFFQ
mov
j
,
OFFQ
%if
ARCH_X86_32
||
mmsize
<
32
sub
ptr2
,
i
sub
ptr2
,
i
%endif
.
loop1
:
.
loop1
:
INNER_LOOP
0
INNER_LOOP
0
jge
.
loop1
jge
.
loop1
...
@@ -394,8 +403,10 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
...
@@ -394,8 +403,10 @@ cglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \
mova
[
outq
+
i
+
0
*
4
+
mmsize
]
,
m7
mova
[
outq
+
i
+
0
*
4
+
mmsize
]
,
m7
mova
[
outq
+
i
+
16
*
4
+
mmsize
]
,
m8
mova
[
outq
+
i
+
16
*
4
+
mmsize
]
,
m8
%endif
%endif
%if
ARCH_X86_32
||
mmsize
<
32
sub
i
,
(
ARCH_X86_64
+
1
)
*
mmsize
sub
i
,
(
ARCH_X86_64
+
1
)
*
mmsize
jge
.
mainloop
jge
.
mainloop
%endif
RET
RET
%endmacro
%endmacro
...
...
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