summaryrefslogtreecommitdiff
path: root/pkg/ffmpeg/patch/0004-libavutil-Use-config-instead-of-compiler-to-determin.patch
blob: 5bf088ee7192d94ba9c43a489423e28f72707969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From c2589a507009d717c3889cd7c7c3803c79a67a67 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Tue, 7 Sep 2021 01:46:57 -0700
Subject: [PATCH] libavutil: Use config instead of compiler to determine
 support for inline asm

---
 libavutil/x86/intreadwrite.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavutil/x86/intreadwrite.h b/libavutil/x86/intreadwrite.h
index 5e57d6a8cd..38ced9a7ce 100644
--- a/libavutil/x86/intreadwrite.h
+++ b/libavutil/x86/intreadwrite.h
@@ -25,9 +25,9 @@
 #include "config.h"
 #include "libavutil/attributes.h"
 
-#if HAVE_MMX
+#if HAVE_MMX_INLINE
 
-#ifdef __SSE__
+#if HAVE_SSE_INLINE
 
 #define AV_COPY128 AV_COPY128
 static av_always_inline void AV_COPY128(void *d, const void *s)
@@ -43,7 +43,7 @@ static av_always_inline void AV_COPY128(void *d, const void *s)
 
 #endif /* __SSE__ */
 
-#ifdef __SSE2__
+#if HAVE_SSE2_INLINE
 
 #define AV_ZERO128 AV_ZERO128
 static av_always_inline void AV_ZERO128(void *d)
@@ -56,8 +56,8 @@ static av_always_inline void AV_ZERO128(void *d)
             :: "xmm0");
 }
 
-#endif /* __SSE2__ */
+#endif /* HAVE_SSE2_INLINE */
 
-#endif /* HAVE_MMX */
+#endif /* HAVE_MMX_INLINE */
 
 #endif /* AVUTIL_X86_INTREADWRITE_H */
-- 
2.44.0