[libcxx-commits] [libcxx] 5d9ef6e - [libc++][NFC] Fix endif comments in cmath
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 11 17:48:16 PST 2023
Author: Nikolas Klauser
Date: 2023-01-12T02:48:10+01:00
New Revision: 5d9ef6ec3f13e9ca865b25c3e068f2846ff71fa1
URL: https://github.com/llvm/llvm-project/commit/5d9ef6ec3f13e9ca865b25c3e068f2846ff71fa1
DIFF: https://github.com/llvm/llvm-project/commit/5d9ef6ec3f13e9ca865b25c3e068f2846ff71fa1.diff
LOG: [libc++][NFC] Fix endif comments in cmath
Added:
Modified:
libcxx/include/cmath
Removed:
################################################################################
diff --git a/libcxx/include/cmath b/libcxx/include/cmath
index 4f327345e8cae..a27d0ebceb350 100644
--- a/libcxx/include/cmath
+++ b/libcxx/include/cmath
@@ -737,7 +737,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp __constexpr_logb(_Tp __x
}
return _Tp(__exp);
}
-#endif // _LIBCPP_STD_VER > 17
+#endif // !__has_constexpr_builtin(__builtin_logb)
return __builtin_logb(__x);
}
@@ -778,7 +778,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _Tp __constexpr_scalbn(_Tp _
}
return __x;
}
-#endif // _LIBCPP_STD_VER > 17
+#endif // !__has_constexpr_builtin(__builtin_scalbln)
return __builtin_scalbn(__x, __exp);
}
More information about the libcxx-commits
mailing list