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
eed299b8
Commit
eed299b8
authored
Oct 31, 2010
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sad16_sse2: merge 2 asm blocks
Originally committed as revision 25617 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0d0778b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
motion_est_mmx.c
libavcodec/x86/motion_est_mmx.c
+7
-10
No files found.
libavcodec/x86/motion_est_mmx.c
View file @
eed299b8
...
...
@@ -98,23 +98,20 @@ static int sad16_sse2(void *v, uint8_t *blk2, uint8_t *blk1, int stride, int h)
ASMALIGN
(
4
)
"1:
\n\t
"
"movdqu (%1), %%xmm0
\n\t
"
"movdqu (%1, %
3
), %%xmm1
\n\t
"
"movdqu (%1, %
4
), %%xmm1
\n\t
"
"psadbw (%2), %%xmm0
\n\t
"
"psadbw (%2, %
3
), %%xmm1
\n\t
"
"psadbw (%2, %
4
), %%xmm1
\n\t
"
"paddw %%xmm0, %%xmm2
\n\t
"
"paddw %%xmm1, %%xmm2
\n\t
"
"lea (%1,%
3
,2), %1
\n\t
"
"lea (%2,%
3
,2), %2
\n\t
"
"lea (%1,%
4
,2), %1
\n\t
"
"lea (%2,%
4
,2), %2
\n\t
"
"sub $2, %0
\n\t
"
" jg 1b
\n\t
"
:
"+r"
(
h
),
"+r"
(
blk1
),
"+r"
(
blk2
)
:
"r"
((
x86_reg
)
stride
)
);
__asm__
volatile
(
"movhlps %%xmm2, %%xmm0
\n\t
"
"paddw %%xmm0, %%xmm2
\n\t
"
"movd %%xmm2, %0
\n\t
"
:
"=r"
(
ret
)
"movd %%xmm2, %3
\n\t
"
:
"+r"
(
h
),
"+r"
(
blk1
),
"+r"
(
blk2
),
"=r"
(
ret
)
:
"r"
((
x86_reg
)
stride
)
);
return
ret
;
}
...
...
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