[libcxx-commits] [libcxx] [libc++] Refactor tests and add constraint checks (PR #175388)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 12 02:42:03 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));
-}
-
----------------
eiytoq wrote:

I've split the work as suggested:
1. I opened PR #175514 for the __sign cleanup.
2. I've rebased this PR. It now consists of a formatting commit followed by the actual logic changes.

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


More information about the libcxx-commits mailing list