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
31ddcf98
Commit
31ddcf98
authored
May 23, 2002
by
Zdenek Kabelac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cleanup for put_pixels_mmx
Originally committed as revision 572 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
423d391b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
56 deletions
+24
-56
dsputil_mmx.c
libavcodec/i386/dsputil_mmx.c
+24
-56
No files found.
libavcodec/i386/dsputil_mmx.c
View file @
31ddcf98
...
...
@@ -267,63 +267,31 @@ static void add_pixels_clamped_mmx(const DCTELEM *block, UINT8 *pixels, int line
static
void
put_pixels_mmx
(
UINT8
*
block
,
const
UINT8
*
pixels
,
int
line_size
,
int
h
)
{
#if 0 //FIXME h==4 case
asm volatile(
"xorl %%eax, %%eax \n\t"
"movl %3, %%esi \n\t"
"1: \n\t"
"movq (%1, %%eax), %%mm0 \n\t"
"movq %%mm0, (%0, %%eax) \n\t"
"addl %2, %%eax \n\t"
"movq (%1, %%eax), %%mm0 \n\t"
"movq %%mm0, (%0, %%eax) \n\t"
"addl %2, %%eax \n\t"
"movq (%1, %%eax), %%mm0 \n\t"
"movq %%mm0, (%0, %%eax) \n\t"
"addl %2, %%eax \n\t"
"movq (%1, %%eax), %%mm0 \n\t"
"movq %%mm0, (%0, %%eax) \n\t"
"addl %2, %%eax \n\t"
"movq (%1, %%eax), %%mm0 \n\t"
"movq %%mm0, (%0, %%eax) \n\t"
"addl %2, %%eax \n\t"
"movq (%1, %%eax), %%mm0 \n\t"
"movq %%mm0, (%0, %%eax) \n\t"
"addl %2, %%eax \n\t"
"movq (%1, %%eax), %%mm0 \n\t"
"movq %%mm0, (%0, %%eax) \n\t"
"addl %2, %%eax \n\t"
"movq (%1, %%eax), %%mm0 \n\t"
"movq %%mm0, (%0, %%eax) \n\t"
"addl %2, %%eax \n\t"
"subl $8, %%esi \n\t"
" jnz 1b \n\t"
:: "r" (block), "r" (pixels), "r"(line_size), "m"(h)
: "%eax", "%esi", "memory"
);
#else
asm
volatile
(
"xorl %%eax, %%eax
\n\t
"
"movl %3, %%esi
\n\t
"
"1:
\n\t
"
"movq (%1, %%eax), %%mm0
\n\t
"
"movq %%mm0, (%0, %%eax)
\n\t
"
"addl %2, %%eax
\n\t
"
"movq (%1, %%eax), %%mm0
\n\t
"
"movq %%mm0, (%0, %%eax)
\n\t
"
"addl %2, %%eax
\n\t
"
"movq (%1, %%eax), %%mm0
\n\t
"
"movq %%mm0, (%0, %%eax)
\n\t
"
"addl %2, %%eax
\n\t
"
"movq (%1, %%eax), %%mm0
\n\t
"
"movq %%mm0, (%0, %%eax)
\n\t
"
"addl %2, %%eax
\n\t
"
"subl $4, %%esi
\n\t
"
" jnz 1b
\n\t
"
::
"r"
(
block
),
"r"
(
pixels
),
"r"
(
line_size
),
"m"
(
h
)
:
"%eax"
,
"%esi"
,
"memory"
);
asm
volatile
(
"lea (%3, %3), %%eax
\n\t
"
#ifdef PIC
".balign 16
\n\t
"
#endif
"1:
\n\t
"
"movq (%1), %%mm0
\n\t
"
"movq (%1, %3), %%mm1
\n\t
"
"movq %%mm0, (%2)
\n\t
"
"movq %%mm1, (%2, %3)
\n\t
"
"addl %%eax, %1
\n\t
"
"addl %%eax, %2
\n\t
"
"movq (%1), %%mm0
\n\t
"
"movq (%1, %3), %%mm1
\n\t
"
"movq %%mm0, (%2)
\n\t
"
"movq %%mm1, (%2, %3)
\n\t
"
"addl %%eax, %1
\n\t
"
"addl %%eax, %2
\n\t
"
"subl $4, %0
\n\t
"
"jnz 1b
\n\t
"
:
"+g"
(
h
),
"+r"
(
pixels
),
"+r"
(
block
)
:
"r"
(
line_size
)
:
"%eax"
,
"memory"
);
}
static
void
put_pixels_x2_mmx
(
UINT8
*
block
,
const
UINT8
*
pixels
,
int
line_size
,
int
h
)
...
...
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