Discussion:
x86: Fix stack alignment for x264_cabac_encode_ue_bypass call
(too old to reply)
Anton Mitrofanov
2017-12-25 19:39:30 UTC
Permalink
Raw Message
x264 | branch: master | Anton Mitrofanov <***@narod.ru> | Sun Oct 22 20:18:39 2017 +0300| [e9a5903edf8ca59ef20e6f4894c196f135af735e] | committer: Anton Mitrofanov

x86: Fix stack alignment for x264_cabac_encode_ue_bypass call

Fix MSVS fprofiled build for win64
http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=e9a5903edf8ca59ef20e6f4894c196f135af735e
---

common/x86/cabac-a.asm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/x86/cabac-a.asm b/common/x86/cabac-a.asm
index 49bca50d..3644fd57 100644
--- a/common/x86/cabac-a.asm
+++ b/common/x86/cabac-a.asm
@@ -737,14 +737,14 @@ cglobal cabac_block_residual_internal, 4,15,0,-4*64
push r7
push r8
%else
- sub rsp, 32 ; shadow space
+ sub rsp, 40 ; shadow space and alignment
%endif
call cabac_encode_ue_bypass
%if UNIX64
pop r8
pop r7
%else
- add rsp, 32
+ add rsp, 40
%endif
pop r0
.level_gt1_end:

Loading...