diff options
author | Chris Robinson <[email protected]> | 2013-11-25 17:29:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-11-25 17:29:39 -0800 |
commit | 80ea801204cec06b26ac8823747ad0981165822c (patch) | |
tree | 4ba696fe3fb56d042d779a994051112380e2229e /Alc/backends/qsa.c | |
parent | 191e8172f0ed00f423f7806b3b52b95d1dab53cc (diff) |
Add a macro for GCC to ensure stack alignment
Diffstat (limited to 'Alc/backends/qsa.c')
-rw-r--r-- | Alc/backends/qsa.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Alc/backends/qsa.c b/Alc/backends/qsa.c index ae3ace61..c9762f85 100644 --- a/Alc/backends/qsa.c +++ b/Alc/backends/qsa.c @@ -177,15 +177,8 @@ static DevMap* deviceList(int type, ALuint* count) return dev_list; } -/* force_align_arg_pointer is required for proper function arguments */ -/* aligning, when SSE mixer is used. QNX has a bug in pthread_create */ -/* function regarding thread stack alignment, it uses 64 bit align */ -/* instead of 128 bit, like main thread. */ -#if defined(__GNUC__) && (_NTO_VERSION <= 650) && \ - defined(__i386__) && defined(HAVE_SSE) -__attribute__((force_align_arg_pointer)) -#endif /* __GNUC__ && QNX version < 6.5.0 on x86 platform with SSE support */ -static ALuint qsa_proc_playback(ALvoid* ptr) + +FORCE_ALIGN static ALuint qsa_proc_playback(ALvoid* ptr) { ALCdevice* device=(ALCdevice*)ptr; qsa_data* data=(qsa_data*)device->ExtraData; |