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
73b02e24
Commit
73b02e24
authored
Jun 16, 2009
by
Jason Garrett-Glaser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SSE version of clear_blocks
Originally committed as revision 19206 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
010f98f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+26
-2
No files found.
libavcodec/x86/dsputil_mmx.c
View file @
73b02e24
...
...
@@ -528,6 +528,28 @@ static void clear_block_sse(DCTELEM *block)
);
}
static
void
clear_blocks_sse
(
DCTELEM
*
blocks
)
{
\
__asm__
volatile
(
"xorps %%xmm0, %%xmm0
\n
"
"mov %1, %%"
REG_a
"
\n
"
"1:
\n
"
"movaps %%xmm0, (%0, %%"
REG_a
")
\n
"
"movaps %%xmm0, 16(%0, %%"
REG_a
")
\n
"
"movaps %%xmm0, 32(%0, %%"
REG_a
")
\n
"
"movaps %%xmm0, 48(%0, %%"
REG_a
")
\n
"
"movaps %%xmm0, 64(%0, %%"
REG_a
")
\n
"
"movaps %%xmm0, 80(%0, %%"
REG_a
")
\n
"
"movaps %%xmm0, 96(%0, %%"
REG_a
")
\n
"
"movaps %%xmm0, 112(%0, %%"
REG_a
")
\n
"
"add $128, %%"
REG_a
"
\n
"
" js 1b
\n
"
:
:
"r"
(((
uint8_t
*
)
blocks
)
+
128
*
6
),
"i"
(
-
128
*
6
)
:
"%"
REG_a
);
}
static
void
add_bytes_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
int
w
){
x86_reg
i
=
0
;
__asm__
volatile
(
...
...
@@ -2671,8 +2693,10 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c
->
add_pixels_clamped
=
add_pixels_clamped_mmx
;
c
->
clear_block
=
clear_block_mmx
;
c
->
clear_blocks
=
clear_blocks_mmx
;
if
(
mm_flags
&
FF_MM_SSE
)
c
->
clear_block
=
clear_block_sse
;
if
(
mm_flags
&
FF_MM_SSE
){
c
->
clear_block
=
clear_block_sse
;
c
->
clear_blocks
=
clear_blocks_sse
;
}
#define SET_HPEL_FUNCS(PFX, IDX, SIZE, CPU) \
c->PFX ## _pixels_tab[IDX][0] = PFX ## _pixels ## SIZE ## _ ## CPU; \
...
...
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