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
e9bb77fb
Commit
e9bb77fb
authored
Mar 08, 2017
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: h264: Simplify DEQUANT macro with cpuflags
parent
307eb1a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
24 deletions
+28
-24
h264_idct.asm
libavcodec/x86/h264_idct.asm
+28
-24
No files found.
libavcodec/x86/h264_idct.asm
View file @
e9bb77fb
...
...
@@ -958,7 +958,30 @@ cglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8
SWAP
%1
,
%4
,
%3
%endmacro
%macro
DEQUANT_MMX
3
%macro
DEQUANT
1
-
3
%if
cpuflag
(
sse2
)
movd
xmm4
,
t3d
movq
xmm5
,
[
pw_1
]
pshufd
xmm4
,
xmm4
,
0
movq2dq
xmm0
,
m0
movq2dq
xmm1
,
m1
movq2dq
xmm2
,
m2
movq2dq
xmm3
,
m3
punpcklwd
xmm0
,
xmm5
punpcklwd
xmm1
,
xmm5
punpcklwd
xmm2
,
xmm5
punpcklwd
xmm3
,
xmm5
pmaddwd
xmm0
,
xmm4
pmaddwd
xmm1
,
xmm4
pmaddwd
xmm2
,
xmm4
pmaddwd
xmm3
,
xmm4
psrad
xmm0
,
%1
psrad
xmm1
,
%1
psrad
xmm2
,
%1
psrad
xmm3
,
%1
packssdw
xmm0
,
xmm1
packssdw
xmm2
,
xmm3
%else
mova
m7
,
[
pw_1
]
mova
m4
,
%1
punpcklwd
%1
,
m7
...
...
@@ -978,6 +1001,7 @@ cglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8
psrad
m5
,
%3
packssdw
%1
,
m4
packssdw
%2
,
m5
%endif
%endmacro
%macro
STORE_WORDS
5
-
9
...
...
@@ -1016,35 +1040,15 @@ cglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8
%macro
DEQUANT_STORE
1
%if
cpuflag
(
sse2
)
movd
xmm4
,
t3d
movq
xmm5
,
[
pw_1
]
pshufd
xmm4
,
xmm4
,
0
movq2dq
xmm0
,
m0
movq2dq
xmm1
,
m1
movq2dq
xmm2
,
m2
movq2dq
xmm3
,
m3
punpcklwd
xmm0
,
xmm5
punpcklwd
xmm1
,
xmm5
punpcklwd
xmm2
,
xmm5
punpcklwd
xmm3
,
xmm5
pmaddwd
xmm0
,
xmm4
pmaddwd
xmm1
,
xmm4
pmaddwd
xmm2
,
xmm4
pmaddwd
xmm3
,
xmm4
psrad
xmm0
,
%1
psrad
xmm1
,
%1
psrad
xmm2
,
%1
psrad
xmm3
,
%1
packssdw
xmm0
,
xmm1
packssdw
xmm2
,
xmm3
DEQUANT
%1
STORE_WORDS
xmm0
,
0
,
1
,
4
,
5
,
2
,
3
,
6
,
7
STORE_WORDS
xmm2
,
8
,
9
,
12
,
13
,
10
,
11
,
14
,
15
%else
DEQUANT
_MMX
m0
,
m1
,
%1
DEQUANT
m0
,
m1
,
%1
STORE_WORDS
m0
,
0
,
1
,
4
,
5
STORE_WORDS
m1
,
2
,
3
,
6
,
7
DEQUANT
_MMX
m2
,
m3
,
%1
DEQUANT
m2
,
m3
,
%1
STORE_WORDS
m2
,
8
,
9
,
12
,
13
STORE_WORDS
m3
,
10
,
11
,
14
,
15
%endif
...
...
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