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
532e7697
Commit
532e7697
authored
Jul 21, 2010
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync yasm macros from x264
Originally committed as revision 24406 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8731dbd8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
12 deletions
+23
-12
x86inc.asm
libavcodec/x86/x86inc.asm
+23
-12
No files found.
libavcodec/x86/x86inc.asm
View file @
532e7697
...
...
@@ -271,13 +271,21 @@ DECLARE_REG 6, rax, eax, ax, al, [rsp + stack_offset + 56]
ASSERT
%2
>=
%1
%
assign
regs_used
%2
ASSERT
regs_used
<=
7
%
assign
xmm_regs_used
%3
ASSERT
xmm_regs_used
<=
16
%
if
regs_used
>
4
push
r4
push
r5
%
assign
stack_offset
stack_offset
+
16
%
endif
WIN64_SPILL_XMM
%3
LOAD_IF_USED
4
,
%1
LOAD_IF_USED
5
,
%1
LOAD_IF_USED
6
,
%1
DEFINE_ARGS
%4
%endmacro
%macro
WIN64_SPILL_XMM
1
%
assign
xmm_regs_used
%1
ASSERT
xmm_regs_used
<=
16
%
if
xmm_regs_used
>
6
sub
rsp
,
(
xmm_regs_used
-
6
)
*
16
+
16
%
assign
stack_offset
stack_offset
+
(
xmm_regs_used
-
6
)
*
16
+
16
...
...
@@ -287,13 +295,9 @@ DECLARE_REG 6, rax, eax, ax, al, [rsp + stack_offset + 56]
movdqa
[
rsp
+
(
%%
i
-
6
)
*
16
+
8
]
,
xmm
%
+
%%
i
%
endrep
%
endif
LOAD_IF_USED
4
,
%1
LOAD_IF_USED
5
,
%1
LOAD_IF_USED
6
,
%1
DEFINE_ARGS
%4
%endmacro
%macro
RESTORE_XMM_INTERNAL
1
%macro
WIN64_
RESTORE_XMM_INTERNAL
1
%
if
xmm_regs_used
>
6
%
assign
%%
i
xmm_regs_used
%
rep
(
xmm_regs_used
-
6
)
...
...
@@ -304,14 +308,14 @@ DECLARE_REG 6, rax, eax, ax, al, [rsp + stack_offset + 56]
%
endif
%endmacro
%macro
RESTORE_XMM
1
RESTORE_XMM_INTERNAL
%1
%macro
WIN64_
RESTORE_XMM
1
WIN64_
RESTORE_XMM_INTERNAL
%1
%
assign
stack_offset
stack_offset
-
(
xmm_regs_used
-
6
)
*
16
+
16
%
assign
xmm_regs_used
0
%endmacro
%macro
RET
0
RESTORE_XMM_INTERNAL
rsp
WIN64_
RESTORE_XMM_INTERNAL
rsp
%
if
regs_used
>
4
pop
r5
pop
r4
...
...
@@ -428,6 +432,13 @@ DECLARE_REG 6, ebp, ebp, bp, null, [esp + stack_offset + 28]
%endif
;======================================================================
%ifndef
WIN64
%macro
WIN64_SPILL_XMM
1
%endmacro
%macro
WIN64_RESTORE_XMM
1
%endmacro
%endif
;=============================================================================
...
...
@@ -494,7 +505,7 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits
%
define
mova
movq
%
define
movu
movq
%
define
movh
movd
%
define
movnt
movntq
%
define
movnt
a
movntq
%
assign
%%
i
0
%
rep
8
CAT_XDEFINE
m
,
%%
i
,
mm
%
+
%%
i
...
...
@@ -518,7 +529,7 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits
%
define
mova
movdqa
%
define
movu
movdqu
%
define
movh
movq
%
define
movnt
movntdq
%
define
movnt
a
movntdq
%
assign
%%
i
0
%
rep
num_mmregs
CAT_XDEFINE
m
,
%%
i
,
xmm
%
+
%%
i
...
...
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