OSDN Git Service

x86inc: Avoid using eax/rax for storing the stack pointer
authorHenrik Gramner <henrik@gramner.com>
Sun, 25 Dec 2016 19:24:59 +0000 (20:24 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 9 Jan 2017 12:21:12 +0000 (13:21 +0100)
commit3cba1ad76d362c994fa98fb686e04e20826fb579
treee232a67af6e1b8dd2be2ff6bdff89cd8d066dad1
parente199a8099411d0992c3ed278287a81f1d791199c
x86inc: Avoid using eax/rax for storing the stack pointer

When allocating stack space with an alignment requirement that is larger
than the current stack alignment we need to store a copy of the original
stack pointer in order to be able to restore it later.

If we chose to use another register for this purpose we should not pick
eax/rax since it can be overwritten as a return value.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavutil/x86/x86inc.asm