From 02fc82c38083cce5bfa8f9fcddfcf34803fd990e Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Mon, 9 Jan 2023 01:16:34 +0100 Subject: [PATCH] [libc++] Add _LIBCPP_HIDE_FROM_ABI to __constexpr_logb and __constexpr_scalbn --- libcxx/include/cmath | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcxx/include/cmath b/libcxx/include/cmath index d106f63..4f32734 100644 --- a/libcxx/include/cmath +++ b/libcxx/include/cmath @@ -715,7 +715,7 @@ __constexpr_fmax(_Tp __x, _Up __y) _NOEXCEPT { } template -_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 -_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)) -- 2.7.4