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
87af05c5
Commit
87af05c5
authored
Jul 15, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: SPLATD: port to cpuflags
parent
1c580552
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
22 deletions
+7
-22
dsputil.asm
libavcodec/x86/dsputil.asm
+0
-2
fmtconvert.asm
libavcodec/x86/fmtconvert.asm
+0
-3
x86util.asm
libavutil/x86/x86util.asm
+6
-16
output.asm
libswscale/x86/output.asm
+1
-1
No files found.
libavcodec/x86/dsputil.asm
View file @
87af05c5
...
...
@@ -1124,11 +1124,9 @@ cglobal vector_clip_int32%5, 5,5,%1, dst, src, min, max, len
%endmacro
INIT_MMX
mmx
%define
SPLATD
SPLATD_MMX
%define
CLIPD
CLIPD_MMX
VECTOR_CLIP_INT32
0
,
1
,
0
,
0
INIT_XMM
sse2
%define
SPLATD
SPLATD_SSE2
VECTOR_CLIP_INT32
6
,
1
,
0
,
0
,
_int
%define
CLIPD
CLIPD_SSE2
VECTOR_CLIP_INT32
6
,
2
,
0
,
1
...
...
libavcodec/x86/fmtconvert.asm
View file @
87af05c5
...
...
@@ -72,12 +72,9 @@ cglobal int32_to_float_fmul_scalar, 4, 4, %1, dst, src, mul, len
%endmacro
INIT_XMM
sse
%define
SPLATD
SPLATD_SSE
INT32_TO_FLOAT_FMUL_SCALAR
5
INIT_XMM
sse2
%define
SPLATD
SPLATD_SSE2
INT32_TO_FLOAT_FMUL_SCALAR
3
%undef
SPLATD
;------------------------------------------------------------------------------
...
...
libavutil/x86/x86util.asm
View file @
87af05c5
...
...
@@ -574,24 +574,14 @@
%endif
%endmacro
%macro
SPLATD
2
-
3
0
%if
mmsize
==
16
pshufd
%1
,
%2
,
(
%3
)
*
0x55
%else
pshufw
%1
,
%2
,
(
%3
)
*
0x11
+
((
%3
)
+
1
)
*
0x44
%endif
%endmacro
%macro
SPLATD_MMX
1
%macro
SPLATD
1
%if
mmsize
==
8
punpckldq
%1
,
%1
%endmacro
%macro
SPLATD_SSE
1
shufps
%1
,
%1
,
0
%endmacro
%macro
SPLATD_SSE2
1
%elif
cpuflag
(
sse2
)
pshufd
%1
,
%1
,
0
%elif
cpuflag
(
sse
)
shufps
%1
,
%1
,
0
%endif
%endmacro
%macro
CLIPW
3
;(dst, min, max)
...
...
libswscale/x86/output.asm
View file @
87af05c5
...
...
@@ -187,7 +187,7 @@ cglobal yuv2planeX_%1, %3, 8, %2, filter, fltsize, src, dst, w, dither, offset
%else
; %1 == 10/9/8
punpcklwd
m5
,
m3
,
m4
punpckhwd
m3
,
m4
SPLATD
m0
,
m0
SPLATD
m0
pmaddwd
m5
,
m0
pmaddwd
m3
,
m0
...
...
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