[libc-commits] [libc] [libc][math][NFC] Fix nextafterl build (PR #195599)
via libc-commits
libc-commits at lists.llvm.org
Mon May 4 00:19:01 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Muhammad Bassiouni (bassiounix)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/195599.diff
1 Files Affected:
- (modified) libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h (+1-1)
``````````diff
diff --git a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
index 74a991d40115e..aa9f4a5e39c2d 100644
--- a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
+++ b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
@@ -24,7 +24,7 @@
namespace LIBC_NAMESPACE_DECL {
namespace fputil {
-LIBC_INLINE long double nextafter(long double from, long double to) {
+LIBC_INLINE constexpr long double nextafter(long double from, long double to) {
using FPBits = FPBits<long double>;
FPBits from_bits(from);
if (from_bits.is_nan())
``````````
</details>
https://github.com/llvm/llvm-project/pull/195599
More information about the libc-commits
mailing list