summaryrefslogtreecommitdiff
path: root/libavcodec/x86/fft.asm
diff options
context:
space:
mode:
authorHenrik Gramner <henrik@gramner.com>2013-09-11 17:49:26 +0200
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-10-07 06:25:35 -0400
commitbbe4a6db44f0b55b424a5cc9d3e89cd88e250450 (patch)
tree868ade1083707ea830a8514c093640be5147f5f1 /libavcodec/x86/fft.asm
parent3fb78e99a04d0ed8db834d813d933eb86c37142a (diff)
downloadffmpeg-bbe4a6db44f0b55b424a5cc9d3e89cd88e250450.tar.gz
x86inc: Utilize the shadow space on 64-bit Windows
Store XMM6 and XMM7 in the shadow space in functions that clobbers them. This way we don't have to adjust the stack pointer as often, reducing the number of instructions as well as code size. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/x86/fft.asm')
-rw-r--r--libavcodec/x86/fft.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/fft.asm b/libavcodec/x86/fft.asm
index c87752bae8..e4744a3b60 100644
--- a/libavcodec/x86/fft.asm
+++ b/libavcodec/x86/fft.asm
@@ -667,13 +667,13 @@ cglobal imdct_calc, 3,5,3
push r1
push r0
%else
- sub rsp, 8
+ sub rsp, 8+32*WIN64 ; allocate win64 shadow space
%endif
call r4
%if ARCH_X86_32
add esp, 12
%else
- add rsp, 8
+ add rsp, 8+32*WIN64
%endif
POP r1
POP r3