Skip to content

Commit d646342

Browse files
committed
add hide_from_abi macro to internal functions
1 parent bf26f4b commit d646342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__math/hypot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct __hypot_factors {
5656

5757
// returns [underflow_factors, overflow_factors]
5858
template <class _Real>
59-
std::array<__hypot_factors<_Real>, 2> __create_factors() {
59+
_LIBCPP_HIDE_FROM_ABI std::array<__hypot_factors<_Real>, 2> __create_factors() {
6060
static_assert(std::numeric_limits<_Real>::is_iec559);
6161

6262
__hypot_factors<_Real> __underflow, __overflow;
@@ -85,7 +85,7 @@ std::array<__hypot_factors<_Real>, 2> __create_factors() {
8585
}
8686

8787
template <class _Real>
88-
_Real __hypot(_Real __x, _Real __y, _Real __z) {
88+
_LIBCPP_HIDE_FROM_ABI _Real __hypot(_Real __x, _Real __y, _Real __z) {
8989
const auto [__underflow, __overflow] = __create_factors<_Real>();
9090
_Real __M = std::max({__math::fabs(__x), __math::fabs(__y), __math::fabs(__z)});
9191
if (__M > __overflow.__threshold) { // x*x + y*y + z*z might overflow

0 commit comments

Comments
 (0)