[FFmpeg-cvslog] lavu/x86: remove GCC 4.4- stuff

Rémi Denis-Courmont git at videolan.org
Thu Jun 13 21:18:11 EEST 2024


ffmpeg | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jun  7 19:43:09 2024 +0300| [0231097d1bd6803a4724465797fcaddbe1fcc92d] | committer: Rémi Denis-Courmont

lavu/x86: remove GCC 4.4- stuff

Since the C11 support is required, those GCC versions can no longer be
supported anyhow. (Clang pretends to be GCC 4.4, but it looks like the
code was intended for old GCC specifically.)

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

 libavutil/x86/bswap.h | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/libavutil/x86/bswap.h b/libavutil/x86/bswap.h
index b2f18b6c93..1ce9dcfc65 100644
--- a/libavutil/x86/bswap.h
+++ b/libavutil/x86/bswap.h
@@ -57,16 +57,7 @@ static inline uint64_t av_const av_bswap64(uint64_t x)
 
 #elif HAVE_INLINE_ASM
 
-#if AV_GCC_VERSION_AT_MOST(4,0)
-#define av_bswap16 av_bswap16
-static av_always_inline av_const unsigned av_bswap16(unsigned x)
-{
-    __asm__("rorw $8, %w0" : "+r"(x));
-    return x;
-}
-#endif /* AV_GCC_VERSION_AT_MOST(4,0) */
-
-#if AV_GCC_VERSION_AT_MOST(4,4) || defined(__INTEL_COMPILER)
+#ifdef __INTEL_COMPILER
 #define av_bswap32 av_bswap32
 static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
 {
@@ -82,7 +73,7 @@ static inline uint64_t av_const av_bswap64(uint64_t x)
     return x;
 }
 #endif
-#endif /* AV_GCC_VERSION_AT_MOST(4,4) */
+#endif /* __INTEL_COMPILER */
 
 #endif /* HAVE_INLINE_ASM */
 #endif /* AVUTIL_X86_BSWAP_H */



More information about the ffmpeg-cvslog mailing list