Mercurial > libavcodec.hg
diff dsputil.h @ 6:ec4642daa6fe libavcodec
added emms_c() macro which should can used in c code in both mmx/non mmx cases
author | glantau |
---|---|
date | Tue, 24 Jul 2001 20:42:03 +0000 |
parents | 2e2c46c87460 |
children | 82d4c9be9873 |
line wrap: on
line diff
--- a/dsputil.h Tue Jul 24 20:38:55 2001 +0000 +++ b/dsputil.h Tue Jul 24 20:42:03 2001 +0000 @@ -75,7 +75,13 @@ static inline void emms(void) { - asm volatile ("emms;"); + __asm __volatile ("emms;":::"memory"); +} + +#define emms_c() \ +{\ + if (mm_flags & MM_MMX)\ + emms();\ } #define __align8 __attribute__ ((aligned (8))) @@ -84,6 +90,8 @@ #else +#define emms_c() + #define __align8 #endif