[libcxx-commits] [libcxx] [libc++] std::abs support for _BitInt(N) and __int128 (PR #196532)
Xavier Roche via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 16 12:57:17 PDT 2026
================
@@ -37,6 +37,68 @@ void test_big() {
assert(std::abs(negative_big_value) == big_value); // make sure it doesn't get casted to a smaller type
}
+// std::abs has __int128/_BitInt(N) overloads as a libc++ extension. The SFINAE
+// probes below need C++17+ (variable templates, decltype-SFINAE).
----------------
xroche wrote:
Done!
https://github.com/llvm/llvm-project/pull/196532
More information about the libcxx-commits
mailing list