[FFmpeg-devel] [PATCH] configure: detect 64-bit generic platforms
Rémi Denis-Courmont
remi at remlab.net
Tue Jun 11 20:06:42 EEST 2024
Le tiistaina 11. kesäkuuta 2024, 19.48.19 EEST Rémi Denis-Courmont a écrit :
> Currently, any unrecognised platform is treated as 32-bit. This should
> detect *most* 64-bit platforms, namely LP64 and LLP64 ones.
> Unfortunately this will not work for ILP32 ABIs on 64-bit ISAs, but
> still better than nothing.
> ---
> configure | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/configure b/configure
> index 83284427df..24eb051713 100755
> --- a/configure
> +++ b/configure
> @@ -5599,6 +5599,12 @@ elif enabled x86; then
> ;;
> esac
>
> +else
> +
> + if test_cpp_condition inttypes.h "UINTPTR_MAX == UINT64_MAX"; then
Should probably check >= rather than ==
> + enable fast_64bit
> + fi
> +
> fi
>
> if [ "$cpu" != generic ]; then
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the ffmpeg-devel
mailing list