diff options
author | Martin Storsjö <martin@martin.st> | 2013-01-09 22:57:41 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-01-18 22:02:13 +0100 |
commit | f4facd2ce70b1d07ae2730abfcc050f2acbc3b53 (patch) | |
tree | b7f3f8a67d0c376c9c0afe24a72e72ed33890f21 /libavutil/internal.h | |
parent | d633d12b2cc999cee3ac25bf9a810fe7ff03726d (diff) | |
download | ffmpeg-f4facd2ce70b1d07ae2730abfcc050f2acbc3b53.tar.gz |
x86: Add a Yasm-based emms() replacement
This provides a fallback when building with Yasm enabled, but neither
inline assembly, nor the _mm_empty intrinsic are available or enabled.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index f0f5a635c8..5bc6a085d6 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -141,6 +141,9 @@ static av_always_inline void emms_c(void) #elif HAVE_MMX && HAVE_MM_EMPTY # include <mmintrin.h> # define emms_c _mm_empty +#elif HAVE_MMX && HAVE_YASM +# include "libavutil/x86/emms.h" +# define emms_c avpriv_emms_yasm #else # define emms_c() #endif /* HAVE_MMX_INLINE */ |