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
ede4ec1f
Commit
ede4ec1f
authored
Jun 14, 2016
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/aacpsdsp: optimize add_squares loop
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
d5ded429
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
aacpsdsp.asm
libavcodec/x86/aacpsdsp.asm
+9
-5
No files found.
libavcodec/x86/aacpsdsp.asm
View file @
ede4ec1f
...
...
@@ -33,18 +33,22 @@ SECTION .text
;*************************************************************************
%macro
PS_ADD_SQUARES
1
cglobal
ps_add_squares
,
3
,
3
,
%1
,
dst
,
src
,
n
shl
nd
,
3
add
srcq
,
nq
neg
nq
align
16
.
loop
:
movaps
m0
,
[srcq]
movaps
m1
,
[
srcq
+
mmsize
]
movaps
m0
,
[
srcq
+
nq
]
movaps
m1
,
[
srcq
+
nq
+
mmsize
]
mulps
m0
,
m0
mulps
m1
,
m1
HADDPS
m0
,
m1
,
m2
addps
m0
,
[dstq]
movaps
[dstq],
m0
add
dstq
,
mmsize
add
srcq
,
mmsize
*
2
sub
nd
,
mmsize
/
4
jg
.
loop
add
nq
,
mmsize
*
2
jl
.
loop
REP_RET
%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