diff pthread.c @ 5542:b0a566346fb1 libavcodec

Add attribute that forces alignment of stack to functions that need it. Necessary for systems that don't align by default to 16 bytes, required by some SSE instructions. Requires GCC >= 4.2. Based on patch by Ga¸«³l Chardon.
author ramiro
date Mon, 13 Aug 2007 15:28:29 +0000
parents 238b95c5ffe2
children a9734fe0811e
line wrap: on
line diff
--- a/pthread.c	Mon Aug 13 14:16:20 2007 +0000
+++ b/pthread.c	Mon Aug 13 15:28:29 2007 +0000
@@ -42,7 +42,7 @@
     int done;
 } ThreadContext;
 
-static void* worker(void *v)
+static void* attribute_align_arg worker(void *v)
 {
     AVCodecContext *avctx = v;
     ThreadContext *c = avctx->thread_opaque;