Mercurial > libavcodec.hg
comparison dsputil.h @ 12414:3fc4c625b6f3 libavcodec
Remove global mm_flags variable
author | mru |
---|---|
date | Tue, 24 Aug 2010 17:47:05 +0000 |
parents | 1241c824de46 |
children | 9f06475db098 |
comparison
equal
deleted
inserted
replaced
12413:e6e4059ea421 | 12414:3fc4c625b6f3 |
---|---|
616 #define emms_c() | 616 #define emms_c() |
617 | 617 |
618 /* should be defined by architectures supporting | 618 /* should be defined by architectures supporting |
619 one or more MultiMedia extension */ | 619 one or more MultiMedia extension */ |
620 int mm_support(void); | 620 int mm_support(void); |
621 extern int mm_flags; | |
622 | 621 |
623 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); | 622 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); |
624 void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx); | 623 void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx); |
625 void dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx); | 624 void dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx); |
626 void dsputil_init_mlib(DSPContext* c, AVCodecContext *avctx); | 625 void dsputil_init_mlib(DSPContext* c, AVCodecContext *avctx); |
645 static inline void emms(void) | 644 static inline void emms(void) |
646 { | 645 { |
647 __asm__ volatile ("emms;":::"memory"); | 646 __asm__ volatile ("emms;":::"memory"); |
648 } | 647 } |
649 | 648 |
650 | 649 #define emms_c() emms() |
651 #define emms_c() \ | |
652 {\ | |
653 if (mm_flags & FF_MM_MMX)\ | |
654 emms();\ | |
655 } | |
656 | 650 |
657 #elif ARCH_ARM | 651 #elif ARCH_ARM |
658 | 652 |
659 #if HAVE_NEON | 653 #if HAVE_NEON |
660 # define STRIDE_ALIGN 16 | 654 # define STRIDE_ALIGN 16 |
668 | 662 |
669 #define STRIDE_ALIGN 16 | 663 #define STRIDE_ALIGN 16 |
670 | 664 |
671 #else | 665 #else |
672 | 666 |
673 #define mm_flags 0 | |
674 #define mm_support() 0 | 667 #define mm_support() 0 |
675 | 668 |
676 #endif | 669 #endif |
677 | 670 |
678 #ifndef STRIDE_ALIGN | 671 #ifndef STRIDE_ALIGN |