[libc-commits] [libc] [libc][math] Add gcc-7 to 9 compatibility for shared math. (PR #197868)

via libc-commits libc-commits at lists.llvm.org
Thu May 21 06:49:11 PDT 2026


================
@@ -95,7 +95,7 @@ template <typename T> struct NormalFloat {
     return result;
   }
 
-  LIBC_INLINE constexpr operator T() const {
+  LIBC_INLINE operator T() const {
----------------
lntue wrote:

I think these operators can be marked with `LIBC_BIT_CAST_CONSTEXPR` instead, due to the use of `FPBits` floating point constructor and `FPBits::get_val()`.

https://github.com/llvm/llvm-project/pull/197868


More information about the libc-commits mailing list