llvm.compiler-rt-builtins
The compiler-rt builtins as a source package: LLVM's replacement for libgcc — the routines a compiler emits calls to — compiled with the consuming program's own flags
mcpp add llvm.compiler-rt-builtins@22.1.8.6
用法
來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。
// The member builds on every runner; the package it names is for the ok-image rows.
import std;
int main() {
// 128-bit division, which the builtins supply on the rows this package serves.
const unsigned __int128 n = (static_cast<unsigned __int128>(1) << 100) + 7;
const unsigned __int128 q = n / 3;
std::println("compiler-rt-builtins-tests: {}", static_cast<unsigned long long>(q % 1000003));
return q * 3 + (n % 3) == n ? 0 : 1;
}
tests/examples/compiler-rt-builtins/tests/resolves.cpp · 專案 tests/examples/compiler-rt-builtins
建置 · 上游資訊清單
- targets
compiler-rt-builtins (lib)- manifest version
22.1.8.6- 來源
https://raw.githubusercontent.com/mcpplibs/compiler-rt-builtins/22.1.8.6/mcpp.toml