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
38e06c29
Commit
38e06c29
authored
Aug 17, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move clipd macros to x86util.asm.
This allows sharing them between multiple .asm files.
parent
45f86128
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
33 deletions
+34
-33
dsputil_yasm.asm
libavcodec/x86/dsputil_yasm.asm
+1
-33
x86util.asm
libavutil/x86/x86util.asm
+33
-0
No files found.
libavcodec/x86/dsputil_yasm.asm
View file @
38e06c29
...
...
@@ -20,6 +20,7 @@
;******************************************************************************
%include
"x86inc.asm"
%include
"x86util.asm"
SECTION_RODATA
pb_f
:
times
16
db
15
...
...
@@ -1054,39 +1055,6 @@ emu_edge mmx
; int32_t max, unsigned int len)
;-----------------------------------------------------------------------------
%macro
PMINSD_MMX
3
; dst, src, tmp
mova
%3
,
%2
pcmpgtd
%3
,
%1
pxor
%1
,
%2
pand
%1
,
%3
pxor
%1
,
%2
%endmacro
%macro
PMAXSD_MMX
3
; dst, src, tmp
mova
%3
,
%1
pcmpgtd
%3
,
%2
pand
%1
,
%3
pandn
%3
,
%2
por
%1
,
%3
%endmacro
%macro
CLIPD_MMX
3
-
4
; src/dst, min, max, tmp
PMINSD_MMX
%1
,
%3
,
%4
PMAXSD_MMX
%1
,
%2
,
%4
%endmacro
%macro
CLIPD_SSE2
3
-
4
; src/dst, min (float), max (float), unused
cvtdq2ps
%1
,
%1
minps
%1
,
%3
maxps
%1
,
%2
cvtps2dq
%1
,
%1
%endmacro
%macro
CLIPD_SSE41
3
-
4
; src/dst, min, max, unused
pminsd
%1
,
%3
pmaxsd
%1
,
%2
%endmacro
%macro
SPLATD_MMX
1
punpckldq
%1
,
%1
%endmacro
...
...
libavutil/x86/x86util.asm
View file @
38e06c29
...
...
@@ -540,3 +540,36 @@
pmaxsw
%1
,
%2
pminsw
%1
,
%3
%endmacro
%macro
PMINSD_MMX
3
; dst, src, tmp
mova
%3
,
%2
pcmpgtd
%3
,
%1
pxor
%1
,
%2
pand
%1
,
%3
pxor
%1
,
%2
%endmacro
%macro
PMAXSD_MMX
3
; dst, src, tmp
mova
%3
,
%1
pcmpgtd
%3
,
%2
pand
%1
,
%3
pandn
%3
,
%2
por
%1
,
%3
%endmacro
%macro
CLIPD_MMX
3
-
4
; src/dst, min, max, tmp
PMINSD_MMX
%1
,
%3
,
%4
PMAXSD_MMX
%1
,
%2
,
%4
%endmacro
%macro
CLIPD_SSE2
3
-
4
; src/dst, min (float), max (float), unused
cvtdq2ps
%1
,
%1
minps
%1
,
%3
maxps
%1
,
%2
cvtps2dq
%1
,
%1
%endmacro
%macro
CLIPD_SSE41
3
-
4
; src/dst, min, max, unused
pminsd
%1
,
%3
pmaxsd
%1
,
%2
%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