comparison dsputil.h @ 10114:8b9fc0c8f1cc libavcodec

Move declarations of some mmx functions to dsputil_mmx.h
author mru
date Sat, 29 Aug 2009 16:55:50 +0000
parents 4b99f60333ca
children 0b76ca7e07b5
comparison
equal deleted inserted replaced
10113:4b99f60333ca 10114:8b9fc0c8f1cc
616 616
617 #undef emms_c 617 #undef emms_c
618 618
619 extern int mm_flags; 619 extern int mm_flags;
620 620
621 void add_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
622 void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
623 void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
624
625 static inline void emms(void) 621 static inline void emms(void)
626 { 622 {
627 __asm__ volatile ("emms;":::"memory"); 623 __asm__ volatile ("emms;":::"memory");
628 } 624 }
629 625
631 #define emms_c() \ 627 #define emms_c() \
632 {\ 628 {\
633 if (mm_flags & FF_MM_MMX)\ 629 if (mm_flags & FF_MM_MMX)\
634 emms();\ 630 emms();\
635 } 631 }
636
637 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx);
638 632
639 #elif ARCH_ARM 633 #elif ARCH_ARM
640 634
641 extern int mm_flags; 635 extern int mm_flags;
642 636