[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
Sun Nov 15 12:50:50 PST 2026


================
@@ -48,8 +48,9 @@ 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>
-polyeval(T x, T a0, Ts... a) {
+LIBC_INLINE
+    LIBC_CONSTEXPR_DEFAULT cpp::enable_if_t<(sizeof(T) <= sizeof(void *)), T>
+    polyeval(T x, T a0, Ts... a) {
----------------
bassiounix wrote:

is this the right format?
weird

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


More information about the libc-commits mailing list