[FFmpeg-cvslog] avutil/x86/intreadwrite: Add ability to detect whether MMX code is used

Andreas Rheinhardt git at videolan.org
Sun Sep 11 22:26:06 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Sep  8 15:00:06 2022 +0200| [29c4c0886d143790fcbeddbe40a23dfc6f56345c] | committer: Andreas Rheinhardt

avutil/x86/intreadwrite: Add ability to detect whether MMX code is used

It can be used to call emms_c() only when needed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29c4c0886d143790fcbeddbe40a23dfc6f56345c
---

 libavutil/x86/intreadwrite.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/x86/intreadwrite.h b/libavutil/x86/intreadwrite.h
index 4061d19231..40f375b013 100644
--- a/libavutil/x86/intreadwrite.h
+++ b/libavutil/x86/intreadwrite.h
@@ -29,6 +29,8 @@
 
 #if !HAVE_FAST_64BIT && defined(__MMX__)
 
+#define FF_COPY_SWAP_ZERO_USES_MMX
+
 #define AV_COPY64 AV_COPY64
 static av_always_inline void AV_COPY64(void *d, const void *s)
 {



More information about the ffmpeg-cvslog mailing list