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]

Reply via email to