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
dbb37e77
Commit
dbb37e77
authored
Jul 15, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: PABSW: port to cpuflags
parent
6c104826
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
vc1dsp.asm
libavcodec/x86/vc1dsp.asm
+0
-3
x86util.asm
libavutil/x86/x86util.asm
+10
-12
No files found.
libavcodec/x86/vc1dsp.asm
View file @
dbb37e77
...
@@ -268,7 +268,6 @@ cglobal vc1_h_loop_filter8, 3,5,0
...
@@ -268,7 +268,6 @@ cglobal vc1_h_loop_filter8, 3,5,0
%endmacro
%endmacro
INIT_MMX
mmxext
INIT_MMX
mmxext
%define
PABSW
PABSW_MMXEXT
VC1_LF
VC1_LF
INIT_XMM
sse2
INIT_XMM
sse2
...
@@ -284,8 +283,6 @@ cglobal vc1_h_loop_filter8, 3,6,8
...
@@ -284,8 +283,6 @@ cglobal vc1_h_loop_filter8, 3,6,8
VC1_H_LOOP_FILTER
8
,
r5
VC1_H_LOOP_FILTER
8
,
r5
RET
RET
%define
PABSW
PABSW_SSSE3
INIT_MMX
ssse3
INIT_MMX
ssse3
; void ff_vc1_v_loop_filter4_ssse3(uint8_t *src, int stride, int pq)
; void ff_vc1_v_loop_filter4_ssse3(uint8_t *src, int stride, int pq)
cglobal
vc1_v_loop_filter4
,
3
,
5
,
0
cglobal
vc1_v_loop_filter4
,
3
,
5
,
0
...
...
libavutil/x86/x86util.asm
View file @
dbb37e77
...
@@ -145,13 +145,21 @@
...
@@ -145,13 +145,21 @@
%endif
%endif
%endmacro
%endmacro
; PABSW macros assume %1 != %2, while ABS1/2 macros work in-place
; PABSW macro assumes %1 != %2, while ABS1/2 macros work in-place
%macro
PABSW_MMX
2
%macro
PABSW
2
%if
cpuflag
(
ssse3
)
pabsw
%1
,
%2
%elif
cpuflag
(
mmxext
)
pxor
%1
,
%1
psubw
%1
,
%2
pmaxsw
%1
,
%2
%else
pxor
%1
,
%1
pxor
%1
,
%1
pcmpgtw
%1
,
%2
pcmpgtw
%1
,
%2
pxor
%2
,
%1
pxor
%2
,
%1
psubw
%2
,
%1
psubw
%2
,
%1
SWAP
%1
,
%2
SWAP
%1
,
%2
%endif
%endmacro
%endmacro
%macro
PSIGNW_MMX
2
%macro
PSIGNW_MMX
2
...
@@ -159,16 +167,6 @@
...
@@ -159,16 +167,6 @@
psubw
%1
,
%2
psubw
%1
,
%2
%endmacro
%endmacro
%macro
PABSW_MMXEXT
2
pxor
%1
,
%1
psubw
%1
,
%2
pmaxsw
%1
,
%2
%endmacro
%macro
PABSW_SSSE3
2
pabsw
%1
,
%2
%endmacro
%macro
PSIGNW_SSSE3
2
%macro
PSIGNW_SSSE3
2
psignw
%1
,
%2
psignw
%1
,
%2
%endmacro
%endmacro
...
...
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