[libc-commits] [libc] [libc][FPUtil] Make hardware helpers usable in constant expressions (PR #242283)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Sat Nov 14 10:22:52 PST 2026
================
@@ -48,7 +48,7 @@ polyeval(const T &x, const T &a0, const Ts &...a) {
}
template <typename T, typename... Ts>
-LIBC_INLINE LIBC_CONSTEXPR cpp::enable_if_t<(sizeof(T) <= sizeof(void *)), T>
+LIBC_INLINE constexpr cpp::enable_if_t<(sizeof(T) <= sizeof(void *)), T>
----------------
bassiounix wrote:
I think `multiply_add` here is not always qualified with `constexpr`, so I think GCC will flag this as error
https://github.com/llvm/llvm-project/pull/242283
More information about the libc-commits
mailing list