Align thread entry point stack
authorAleksey Vasenev <margtu-fivt@ya.ru>
Fri, 29 Jul 2016 08:28:50 +0000 (11:28 +0300)
committerJames Zern <jzern@google.com>
Wed, 10 Aug 2016 18:57:34 +0000 (11:57 -0700)
commit343b6b09a121f5106281ac3fe9052b2f2c670491
tree16b7a60ab981c42e80de9eca1bfd75d10a9cf8ac
parent4916a87bfc58b96882db3a9e978e604384821d92
Align thread entry point stack

_beginthreadex does not align the stack on 16-byte boundary as expected
by gcc.

On x86 targets, the force_align_arg_pointer attribute may be applied to
individual function definitions, generating an alternate prologue and
epilogue that realigns the run-time stack if necessary. This supports
mixing legacy codes that run with a 4-byte aligned stack with modern
codes that keep a 16-byte stack for SSE compatibility.
https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html

Change-Id: Ie4e4ab32948c238fa87054d5664189972ca6708e
Signed-off-by: Aleksey Vasenev <margtu-fivt@ya.ru>
vp8/common/threading.h
vpx_util/vpx_thread.h