Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
dae1d507
Commit
dae1d507
authored
Jul 27, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: Add PAVGB macro to abstract pavgb/pavgusb instruction via cpuflags
parent
23098bbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
h264_chromamc.asm
libavcodec/x86/h264_chromamc.asm
+2
-5
x86util.asm
libavutil/x86/x86util.asm
+8
-0
No files found.
libavcodec/x86/h264_chromamc.asm
View file @
dae1d507
...
@@ -427,11 +427,11 @@ cglobal %1_%2_chroma_mc2, 6, 7, 0
...
@@ -427,11 +427,11 @@ cglobal %1_%2_chroma_mc2, 6, 7, 0
%macro
NOTHING
2
-
3
%macro
NOTHING
2
-
3
%endmacro
%endmacro
%macro
DIRECT_AVG
2
%macro
DIRECT_AVG
2
PAVG
%1
,
%2
PAVG
B
%1
,
%2
%endmacro
%endmacro
%macro
COPY_AVG
3
%macro
COPY_AVG
3
movd
%2
,
%3
movd
%2
,
%3
PAVG
%1
,
%2
PAVG
B
%1
,
%2
%endmacro
%endmacro
INIT_MMX
mmx
INIT_MMX
mmx
...
@@ -448,7 +448,6 @@ chroma_mc2_mmx_func put, h264
...
@@ -448,7 +448,6 @@ chroma_mc2_mmx_func put, h264
%define
CHROMAMC_AVG
DIRECT_AVG
%define
CHROMAMC_AVG
DIRECT_AVG
%define
CHROMAMC_AVG4
COPY_AVG
%define
CHROMAMC_AVG4
COPY_AVG
%define
PAVG
pavgb
chroma_mc8_mmx_func
avg
,
h264
,
_rnd
chroma_mc8_mmx_func
avg
,
h264
,
_rnd
chroma_mc8_mmx_func
avg
,
vc1
,
_nornd
chroma_mc8_mmx_func
avg
,
vc1
,
_nornd
chroma_mc8_mmx_func
avg
,
rv40
chroma_mc8_mmx_func
avg
,
rv40
...
@@ -456,7 +455,6 @@ chroma_mc4_mmx_func avg, h264
...
@@ -456,7 +455,6 @@ chroma_mc4_mmx_func avg, h264
chroma_mc4_mmx_func
avg
,
rv40
chroma_mc4_mmx_func
avg
,
rv40
chroma_mc2_mmx_func
avg
,
h264
chroma_mc2_mmx_func
avg
,
h264
%define
PAVG
pavgusb
INIT_MMX
3
dnow
INIT_MMX
3
dnow
chroma_mc8_mmx_func
avg
,
h264
,
_rnd
chroma_mc8_mmx_func
avg
,
h264
,
_rnd
chroma_mc8_mmx_func
avg
,
vc1
,
_nornd
chroma_mc8_mmx_func
avg
,
vc1
,
_nornd
...
@@ -673,7 +671,6 @@ INIT_MMX ssse3
...
@@ -673,7 +671,6 @@ INIT_MMX ssse3
chroma_mc4_ssse3_func
put
,
h264
chroma_mc4_ssse3_func
put
,
h264
%define
CHROMAMC_AVG
DIRECT_AVG
%define
CHROMAMC_AVG
DIRECT_AVG
%define
PAVG
pavgb
INIT_XMM
ssse3
INIT_XMM
ssse3
chroma_mc8_ssse3_func
avg
,
h264
,
_rnd
chroma_mc8_ssse3_func
avg
,
h264
,
_rnd
chroma_mc8_ssse3_func
avg
,
vc1
,
_nornd
chroma_mc8_ssse3_func
avg
,
vc1
,
_nornd
...
...
libavutil/x86/x86util.asm
View file @
dae1d507
...
@@ -301,6 +301,14 @@
...
@@ -301,6 +301,14 @@
%endif
%endif
%endmacro
%endmacro
%macro
PAVGB
2
%if
cpuflag
(
mmxext
)
pavgb
%1
,
%2
%elif
cpuflag
(
3
dnow
)
pavgusb
%1
,
%2
%endif
%endmacro
%macro
PSHUFLW
1
+
%macro
PSHUFLW
1
+
%
if
mmsize
==
8
%
if
mmsize
==
8
pshufw
%1
pshufw
%1
...
...
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