aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-07-10 13:48:42 -0300
committerJames Almer <jamrial@gmail.com>2024-07-10 13:49:21 -0300
commit15056dd65026023352069f58403c997be7fb9496 (patch)
treef264839fe63a767f7ff3710e76b8715c3dc60479 /libavutil
parentbd1bcb07e0f29c135103a402d71b343a09ad1690 (diff)
downloadffmpeg-15056dd65026023352069f58403c997be7fb9496.tar.gz
x86/intreadwrite.h: add missing preprocessor checks
Removed by accident in the previous commits. This makes the code only run when compiled with GCC and Clang like before. Support for other compilers like msvc can be added later. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/x86/intreadwrite.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavutil/x86/intreadwrite.h b/libavutil/x86/intreadwrite.h
index 6546eb016c..fd21143dd9 100644
--- a/libavutil/x86/intreadwrite.h
+++ b/libavutil/x86/intreadwrite.h
@@ -22,16 +22,16 @@
#define AVUTIL_X86_INTREADWRITE_H
#include <stdint.h>
-#if HAVE_INTRINSICS_SSE
+#if HAVE_INTRINSICS_SSE && defined(__SSE__)
#include <immintrin.h>
#endif
-#if HAVE_INTRINSICS_SSE2
+#if HAVE_INTRINSICS_SSE2 && defined(__SSE2__)
#include <emmintrin.h>
#endif
#include "config.h"
#include "libavutil/attributes.h"
-#if HAVE_INTRINSICS_SSE
+#if HAVE_INTRINSICS_SSE && defined(__SSE__)
#define AV_COPY128 AV_COPY128
static av_always_inline void AV_COPY128(void *d, const void *s)
@@ -40,9 +40,9 @@ static av_always_inline void AV_COPY128(void *d, const void *s)
_mm_store_ps(d, tmp);
}
-#endif /* HAVE_INTRINSICS_SSE */
+#endif /* HAVE_INTRINSICS_SSE && defined(__SSE__) */
-#if HAVE_INTRINSICS_SSE2
+#if HAVE_INTRINSICS_SSE2 && defined(__SSE2__)
#define AV_ZERO128 AV_ZERO128
static av_always_inline void AV_ZERO128(void *d)
@@ -51,6 +51,6 @@ static av_always_inline void AV_ZERO128(void *d)
_mm_store_si128(d, zero);
}
-#endif /* HAVE_INTRINSICS_SSE2 */
+#endif /* HAVE_INTRINSICS_SSE2 && defined(__SSE2__) */
#endif /* AVUTIL_X86_INTREADWRITE_H */