[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:37:38 PST 2026
https://github.com/eiytoq created https://github.com/llvm/llvm-project/pull/175514
None
>From 95a3268c28b8436236ea16d94f5c11658ebcd136 Mon Sep 17 00:00:00 2001
From: eiytoq <eiytoq at outlook.com>
Date: Mon, 12 Jan 2026 18:34:49 +0800
Subject: [PATCH] cleanup
---
libcxx/include/__numeric/midpoint.h | 5 -----
1 file changed, 5 deletions(-)
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;
More information about the libcxx-commits
mailing list