[flang-commits] [flang] [llvm] [Flang] Introduce common::numeric_limits (PR #228108)
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Wed Oct 14 08:51:25 PDT 2026
================
@@ -128,11 +128,12 @@ class Integer {
// C++'s integral types can all be converted to Integer
// with silent truncation.
- template <typename INT, typename = std::enable_if_t<std::is_integral_v<INT>>>
+ template <typename INT,
+ typename = std::enable_if_t<common::is_integral_v<INT>>>
----------------
Meinersbur wrote:
We can assume `Integer<BITWIDTH>` would not be used with int128 parts before 128 bit computers become common. Compilers implement __int128 by splitting it into 64 bit parts, which `Integer<BITWIDTH>` is already doing.
https://github.com/llvm/llvm-project/pull/228108
More information about the flang-commits
mailing list