[libc-commits] [libc] cd077ba - [libc][math][NFC] Fix nextafterl build (#195599)

via libc-commits libc-commits at lists.llvm.org
Mon May 4 00:15:21 PDT 2026


Author: Muhammad Bassiouni
Date: 2026-05-04T10:15:17+03:00
New Revision: cd077bac85035d3b54fa97116aaad13810375e70

URL: https://github.com/llvm/llvm-project/commit/cd077bac85035d3b54fa97116aaad13810375e70
DIFF: https://github.com/llvm/llvm-project/commit/cd077bac85035d3b54fa97116aaad13810375e70.diff

LOG: [libc][math][NFC] Fix nextafterl build (#195599)

Added: 
    

Modified: 
    libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h

Removed: 
    


################################################################################
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())


        


More information about the libc-commits mailing list