[libc++] Add _LIBCPP_HIDE_FROM_ABI to __constexpr_logb and __constexpr_scalbn
authorNikolas Klauser <nikolasklauser@berlin.de>
Mon, 9 Jan 2023 00:16:34 +0000 (01:16 +0100)
committerNikolas Klauser <nikolasklauser@berlin.de>
Mon, 9 Jan 2023 00:17:18 +0000 (01:17 +0100)
libcxx/include/cmath

index d106f63..4f32734 100644 (file)
@@ -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))