[libc-commits] [libc] [libc][NFC] Remove `FloatProperties` (PR #76508)

Clement Courbet via libc-commits libc-commits at lists.llvm.org
Thu Dec 28 08:00:15 PST 2023


================
@@ -174,12 +174,12 @@ struct FPProperties : public internal::FPBaseProperties<fp_type> {
 };
 
 //-----------------------------------------------------------------------------
-template <typename FP> LIBC_INLINE static constexpr FPType get_fp_type() {
-  if constexpr (cpp::is_same_v<FP, float> && __FLT_MANT_DIG__ == 24)
+template <typename T> LIBC_INLINE static constexpr FPType get_fp_type() {
+  if constexpr (cpp::is_same_v<T, float> && __FLT_MANT_DIG__ == 24)
----------------
legrosbuffle wrote:

Do we want `remove_cv` (to support `get_fp_type<const float>`) ? 

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


More information about the libc-commits mailing list