[libcxx-commits] [libcxx] [libc++] Refactor midpoint test and clean unused functions (PR #175388)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 12 01:39:39 PST 2026


================
@@ -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));
-}
-
----------------
philnik777 wrote:

Can we do this separately? No need to do another review, you can just push it to main.

https://github.com/llvm/llvm-project/pull/175388


More information about the libcxx-commits mailing list