[libcxx-commits] [libcxx] [libc++] Removed unused internal helper functions from the midpoint.h header (PR #175514)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 12 02:38:08 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: eiytoq (eiytoq)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/175514.diff
1 Files Affected:
- (modified) libcxx/include/__numeric/midpoint.h (-5)
``````````diff
diff --git a/libcxx/include/__numeric/midpoint.h b/libcxx/include/__numeric/midpoint.h
index 8b379f47c5684..d8e73ab8cad36 100644
--- a/libcxx/include/__numeric/midpoint.h
+++ b/libcxx/include/__numeric/midpoint.h
@@ -52,11 +52,6 @@ template <class _Tp>
return __a + std::midpoint(ptrdiff_t(0), __b - __a);
}
-template <typename _Tp>
-_LIBCPP_HIDE_FROM_ABI constexpr int __sign(_Tp __val) {
- return (_Tp(0) < __val) - (__val < _Tp(0));
-}
-
template <typename _Fp>
_LIBCPP_HIDE_FROM_ABI constexpr _Fp __fp_abs(_Fp __f) {
return __f >= 0 ? __f : -__f;
``````````
</details>
https://github.com/llvm/llvm-project/pull/175514
More information about the libcxx-commits
mailing list