* [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
* Re: [FFmpeg-devel] [PATCH] lavu/x86: remove GCC 4.4- stuff
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
0 siblings, 2 replies; 4+ messages in thread
From: marcus @ 2024-06-07 18:05 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Friday, June 7th, 2024 at 11:49 AM, Rémi Denis-Courmont <remi@remlab.net> wrote:
>
>
> 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(-)
Public headers are required to be C99 compatible.
`bswap.h` is a public header because it is in the `libavutil/Makefile`'s `HEADERS` variable.
Sources:
https://ffmpeg.org/developer.html#Language
https://ffmpeg.org/developer.html#Library-public-interfaces
_______________________________________________
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
* Re: [FFmpeg-devel] [PATCH] lavu/x86: remove GCC 4.4- stuff
2024-06-07 18:05 ` marcus
@ 2024-06-07 18:11 ` Rémi Denis-Courmont
2024-06-07 18:42 ` Andreas Rheinhardt
1 sibling, 0 replies; 4+ messages in thread
From: Rémi Denis-Courmont @ 2024-06-07 18:11 UTC (permalink / raw)
To: FFmpeg development discussions and patches
Le perjantaina 7. kesäkuuta 2024, 21.05.50 EEST marcus a écrit :
> On Friday, June 7th, 2024 at 11:49 AM, Rémi Denis-Courmont <remi@remlab.net>
wrote:
> > 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(-)
>
> Public headers are required to be C99 compatible.
Yes? And... ?
--
Rémi Denis-Courmont
http://www.remlab.net/
_______________________________________________
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
* Re: [FFmpeg-devel] [PATCH] lavu/x86: remove GCC 4.4- stuff
2024-06-07 18:05 ` marcus
2024-06-07 18:11 ` Rémi Denis-Courmont
@ 2024-06-07 18:42 ` Andreas Rheinhardt
1 sibling, 0 replies; 4+ messages in thread
From: Andreas Rheinhardt @ 2024-06-07 18:42 UTC (permalink / raw)
To: ffmpeg-devel
marcus:
>
>
>
>
>
> On Friday, June 7th, 2024 at 11:49 AM, Rémi Denis-Courmont <remi@remlab.net> wrote:
>
>>
>>
>> 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(-)
>
> Public headers are required to be C99 compatible.
>
> `bswap.h` is a public header because it is in the `libavutil/Makefile`'s `HEADERS` variable.
>
libavutil/bswap.h is public, libavutil/x86/bswap.h is not.
- Andreas
_______________________________________________
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