[x264-devel] x86inc: Support arbitrary stack alignments

Henrik Gramner git at videolan.org
Thu Mar 13 21:23:52 CET 2014


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sun Feb  9 23:58:04 2014 +0100| [d978dc08d74fec35cb11008865ef292f8745a1a3] | committer: Jason Garrett-Glaser

x86inc: Support arbitrary stack alignments

If the stack is known to be at least 32-byte aligned we can safely store ymm
registers on the stack without doing manual alignment.

Change ALLOC_STACK to always align the stack before allocating stack space for
consistency. Previously alignment would occur either before or after allocating
stack space depending on whether manual alignment was required or not.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=d978dc08d74fec35cb11008865ef292f8745a1a3
---

 common/cpu.c             |    2 +-
 common/cpu.h             |    2 +-
 common/osdep.h           |    2 +-
 common/x86/deblock-a.asm |    7 +++---
 common/x86/x86inc.asm    |   59 +++++++++++++++++++++++++++++-----------------
 configure                |   15 ++++++------
 tools/checkasm.c         |    2 +-
 7 files changed, 52 insertions(+), 37 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=d978dc08d74fec35cb11008865ef292f8745a1a3


More information about the x264-devel mailing list