[libcxx-commits] [libcxx] 02fc82c - [libc++] Add _LIBCPP_HIDE_FROM_ABI to __constexpr_logb and __constexpr_scalbn
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 8 16:17:31 PST 2023
Author: Nikolas Klauser
Date: 2023-01-09T01:17:18+01:00
New Revision: 02fc82c38083cce5bfa8f9fcddfcf34803fd990e
URL: https://github.com/llvm/llvm-project/commit/02fc82c38083cce5bfa8f9fcddfcf34803fd990e
DIFF: https://github.com/llvm/llvm-project/commit/02fc82c38083cce5bfa8f9fcddfcf34803fd990e.diff
LOG: [libc++] Add _LIBCPP_HIDE_FROM_ABI to __constexpr_logb and __constexpr_scalbn
Added:
Modified:
libcxx/include/cmath
Removed:
################################################################################
diff --git a/libcxx/include/cmath b/libcxx/include/cmath
index d106f6323172..4f327345e8ca 100644
--- a/libcxx/include/cmath
+++ b/libcxx/include/cmath
@@ -715,7 +715,7 @@ __constexpr_fmax(_Tp __x, _Up __y) _NOEXCEPT {
}
template <class _Tp>
-_LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp __constexpr_logb(_Tp __x) {
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp __constexpr_logb(_Tp __x) {
#if !__has_constexpr_builtin(__builtin_logb)
if (__libcpp_is_constant_evaluated()) {
if (__x == _Tp(0)) {
@@ -742,7 +742,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp __constexpr_logb(_Tp __x) {
}
template <class _Tp>
-_LIBCPP_CONSTEXPR_SINCE_CXX20 _Tp __constexpr_scalbn(_Tp __x, int __exp) {
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _Tp __constexpr_scalbn(_Tp __x, int __exp) {
#if !__has_constexpr_builtin(__builtin_scalbln)
if (__libcpp_is_constant_evaluated()) {
if (__x == _Tp(0))
More information about the libcxx-commits
mailing list