[libc-commits] [libc] [libc][FPUtil] Make hardware helpers usable in constant expressions (PR #242283)
via libc-commits
libc-commits at lists.llvm.org
Sun Nov 15 04:50:04 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>
----------------
linisha15 wrote:
switched it to LIBC_CONSTEXPR_DEFAULT to match multiply_add. (It wasn't failing in practice since polyeval is a template and GCC only rejects non-template cases, but the qualifiers should agree.)
https://github.com/llvm/llvm-project/pull/242283
More information about the libc-commits
mailing list