[PR] configure: Check for division of __int128 (PR #23594)

Martin Storsjö via ffmpeg-devel <[email protected]>
Newsgroups gmane.comp.video.ffmpeg.devel
Message-ID <178237331839.59.15853732123224373967@29965ddac10e>
PR #23594 opened by Martin Storsjö (mstorsjo)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23594
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23594.patch

This fixes detection on toolchains where the compiler is able to
compile code with __int128, but the toolchain doesn't automatically
link in suitable helper functions needed for handling division.
(In practice, clang targeting MSVC environments.)



From 58442664bdb4b4d11efaf4eb02b63c92df172309 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <[email protected]>
Date: Thu, 25 Jun 2026 10:40:24 +0300
Subject: [PATCH] configure: Check for division of __int128

This fixes detection on toolchains where the compiler is able to
compile code with __int128, but the toolchain doesn't automatically
link in suitable helper functions needed for handling division.
(In practice, clang targeting MSVC environments.)
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index a670bf546a..8941ced1f4 100755
--- a/configure
+++ b/configure
@@ -6954,7 +6954,7 @@ fi
 check_builtin MemoryBarrier windows.h "MemoryBarrier()"
 check_builtin gmtime_r time.h "time_t *time; struct tm *tm; gmtime_r(time, tm)"
 check_builtin localtime_r time.h "time_t *time; struct tm *tm; localtime_r(time, tm)"
-check_builtin int128 "" "volatile __int128 i128var = 1; i128var <<= 100;"
+check_builtin int128 "" "volatile __int128 i128var = 1; i128var /= 100;"
 
 check_builtin float16 "" "_Float16 f16var"
 if enabled float16; then
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.