Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] lavu/x86: remove GCC 4.4- stuff
@ 2024-06-07 16:49 Rémi Denis-Courmont
  2024-06-07 18:05 ` marcus
  0 siblings, 1 reply; 4+ messages in thread
From: Rémi Denis-Courmont @ 2024-06-07 16:49 UTC (permalink / raw)
  To: ffmpeg-devel

Since the C11 support is required, those GCC versions can no longer be
supported anyhow.
---
 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 */
-- 
2.45.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-07 18:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-07 16:49 [FFmpeg-devel] [PATCH] lavu/x86: remove GCC 4.4- stuff Rémi Denis-Courmont
2024-06-07 18:05 ` marcus
2024-06-07 18:11   ` Rémi Denis-Courmont
2024-06-07 18:42   ` Andreas Rheinhardt

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git