From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 7C73F4B6D6 for ; Tue, 11 Jun 2024 16:48:29 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5016C68D7EE; Tue, 11 Jun 2024 19:48:26 +0300 (EEST) Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EF66C68D85C for ; Tue, 11 Jun 2024 19:48:19 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 8CCF2C00A2 for ; Tue, 11 Jun 2024 19:48:19 +0300 (EEST) From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Jun 2024 19:48:19 +0300 Message-ID: <20240611164819.25048-1-remi@remlab.net> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: detect 64-bit generic platforms X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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 + enable fast_64bit + fi + fi if [ "$cpu" != generic ]; then -- 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".