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
140367af
Commit
140367af
authored
Dec 12, 2012
by
Ronald S. Bultje
Committed by
Martin Storsjö
Dec 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86inc: fix stack alignment on win64
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
29d2595a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
x86inc.asm
libavutil/x86/x86inc.asm
+6
-4
No files found.
libavutil/x86/x86inc.asm
View file @
140367af
...
...
@@ -428,7 +428,7 @@ DECLARE_REG 14, R15, 120
%
assign
%%
i
xmm_regs_used
%
rep
(
xmm_regs_used
-
6
)
%
assign
%%
i
%%
i
-
1
movdqa
[
rsp
+
(
%%
i
-
6
)
*
16
+
stack_size
]
,
xmm
%
+
%%
i
movdqa
[
rsp
+
(
%%
i
-
6
)
*
16
+
stack_size
+
(
~
stack_offset
&
8
)
]
,
xmm
%
+
%%
i
%
endrep
%endmacro
...
...
@@ -436,8 +436,7 @@ DECLARE_REG 14, R15, 120
%
assign
xmm_regs_used
%1
ASSERT
xmm_regs_used
<=
16
%
if
xmm_regs_used
>
6
%
assign
stack_size_padded
(
xmm_regs_used
-
6
)
*
16
+
16
-
gprsize
-
(
stack_offset
&
15
)
SUB
rsp
,
stack_size_padded
SUB
rsp
,
(
xmm_regs_used
-
6
)
*
16
+
16
WIN64_PUSH_XMM
%
endif
%endmacro
...
...
@@ -447,8 +446,11 @@ DECLARE_REG 14, R15, 120
%
assign
%%
i
xmm_regs_used
%
rep
(
xmm_regs_used
-
6
)
%
assign
%%
i
%%
i
-
1
movdqa
xmm
%
+
%%
i
,
[
%1
+
(
%%
i
-
6
)
*
16
+
stack_size
]
movdqa
xmm
%
+
%%
i
,
[
%1
+
(
%%
i
-
6
)
*
16
+
stack_size
+
(
~
stack_offset
&
8
)
]
%
endrep
%
if
stack_size_padded
==
0
add
%1
,
(
xmm_regs_used
-
6
)
*
16
+
16
%
endif
%
endif
%
if
stack_size_padded
>
0
%
if
stack_size
>
0
&&
(
mmsize
==
32
||
HAVE_ALIGNED_STACK
==
0
)
...
...
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