comparison dsputil.h @ 1974:8c5489b2cf3e libavcodec

move __align16 some place where non-MMX machines can see it
author melanson
date Sun, 25 Apr 2004 04:06:09 +0000
parents 8a556283601d
children 89422281f6f6
comparison
equal deleted inserted replaced
1973:8dc96e383480 1974:8c5489b2cf3e
379 379
380 /* should be defined by architectures supporting 380 /* should be defined by architectures supporting
381 one or more MultiMedia extension */ 381 one or more MultiMedia extension */
382 int mm_support(void); 382 int mm_support(void);
383 383
384 #define __align16 __attribute__ ((aligned (16)))
385
384 #if defined(HAVE_MMX) 386 #if defined(HAVE_MMX)
385 387
386 #undef emms_c 388 #undef emms_c
387 389
388 #define MM_MMX 0x0001 /* standard MMX */ 390 #define MM_MMX 0x0001 /* standard MMX */
407 if (mm_flags & MM_MMX)\ 409 if (mm_flags & MM_MMX)\
408 emms();\ 410 emms();\
409 } 411 }
410 412
411 #define __align8 __attribute__ ((aligned (8))) 413 #define __align8 __attribute__ ((aligned (8)))
412 #define __align16 __attribute__ ((aligned (16)))
413 414
414 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx); 415 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx);
415 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx); 416 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx);
416 417
417 #elif defined(ARCH_ARMV4L) 418 #elif defined(ARCH_ARMV4L)
418 419
419 /* This is to use 4 bytes read to the IDCT pointers for some 'zero' 420 /* This is to use 4 bytes read to the IDCT pointers for some 'zero'
420 line ptimizations */ 421 line optimizations */
421 #define __align8 __attribute__ ((aligned (4))) 422 #define __align8 __attribute__ ((aligned (4)))
422 423
423 void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx); 424 void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx);
424 425
425 #elif defined(HAVE_MLIB) 426 #elif defined(HAVE_MLIB)