[FFmpeg-cvslog] r11919 - trunk/libavutil/mem.h

Rich Felker dalias
Wed Feb 13 19:38:36 CET 2008


On Wed, Feb 13, 2008 at 09:19:36AM +0000, M?ns Rullg?rd wrote:
> Rich Felker <dalias at aerifal.cx> writes:
> 
> > On Wed, Feb 13, 2008 at 09:36:04AM +0100, diego wrote:
> >> Author: diego
> >> Date: Wed Feb 13 09:36:04 2008
> >> New Revision: 11919
> >> 
> >> Log:
> >> Add fallback for DECLARE_ALIGNED and DECLARE_ASM_CONST.
> >> 
> >> 
> >> Modified:
> >>    trunk/libavutil/mem.h
> >> 
> >> Modified: trunk/libavutil/mem.h
> >> ==============================================================================
> >> --- trunk/libavutil/mem.h	(original)
> >> +++ trunk/libavutil/mem.h	Wed Feb 13 09:36:04 2008
> >> @@ -35,6 +35,10 @@
> >>  #elif _MSVC
> >>    #define DECLARE_ALIGNED(n,t,v)      __declspec(align(n)) t v
> >>    #define DECLARE_ASM_CONST(n,t,v)    __declspec(align(n)) static const t v
> >> +#else
> >> +  #warning No align and asm directives, this might fail.
> >
> > I hope the configure script can be cleaned up to make sure it does not
> > enable any asm in these cases, and then the #warning can be removed...
> 
> Of course it can.  What should we be testing for?

Ability to compile:

int main(void) { asm volatile("some obscure x86 opcode"); return 0; }

Alternatively, some plain opcodes with x86 registers in the
input/output/clobber lists.

Rich




More information about the ffmpeg-cvslog mailing list