comparison dsputil.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 c16a59ef6a86
children ec04964a1d1a
comparison
equal deleted inserted replaced
5541:6c385356e61f 5542:b0a566346fb1
3831 if(!did_fail){ 3831 if(!did_fail){
3832 #if defined(HAVE_MMX) || defined(HAVE_ALTIVEC) 3832 #if defined(HAVE_MMX) || defined(HAVE_ALTIVEC)
3833 av_log(NULL, AV_LOG_ERROR, 3833 av_log(NULL, AV_LOG_ERROR,
3834 "Compiler did not align stack variables. Libavcodec has been miscompiled\n" 3834 "Compiler did not align stack variables. Libavcodec has been miscompiled\n"
3835 "and may be very slow or crash. This is not a bug in libavcodec,\n" 3835 "and may be very slow or crash. This is not a bug in libavcodec,\n"
3836 "but in the compiler. Do not report crashes to FFmpeg developers.\n"); 3836 "but in the compiler. You may try recompiling using gcc >= 4.2.\n"
3837 "Do not report crashes to FFmpeg developers.\n");
3837 #endif 3838 #endif
3838 did_fail=1; 3839 did_fail=1;
3839 } 3840 }
3840 return -1; 3841 return -1;
3841 } 3842 }