src/linux/arch/x86_64/rt/int128.cpp
0 → 100644
+77
−0
Loading
<chrono>'s time_point formatter divides __int128 values, which the
compiler lowers to __divti3. x86_64 links -nostdlib without a builtins
archive, so blogi_stdlib_gaps_test failed to link. Add __divti3,
__udivti3, __modti3, __umodti3 and __udivmodti4 (native divq fast path,
shift-and-subtract otherwise), picked up by the arch rt/ glob like the
powerpc counterpart. Differentially tested against libgcc; 157/157 e2e.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>