[libc-commits] [libc] [libc][math] Qualify math functions with constexpr (PR #242285)

via libc-commits libc-commits at lists.llvm.org
Wed Nov 25 05:47:30 PST 2026


================
@@ -16,7 +16,9 @@ namespace LIBC_NAMESPACE_DECL {
 namespace math {
 
 // TODO(issue#185232): Mark as constexpr once the refactor is done.
-LIBC_INLINE long double ceill(long double x) { return fputil::ceil(x); }
+LIBC_INLINE constexpr long double ceill(long double x) {
----------------
Sukumarsawant wrote:

The core Float80 implementation in FPUtil, including basic arithmetic and other operations, was added in https://github.com/llvm/llvm-project/pull/214447. The remaining new Float80 math entry points are being added in https://github.com/llvm/llvm-project/issues/219707.
cc: @lntue 

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


More information about the libc-commits mailing list