[libc-commits] [libc] [libc][NFC] Remove dead code (PR #73315)

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Fri Nov 24 02:44:11 PST 2023


https://github.com/gchatelet created https://github.com/llvm/llvm-project/pull/73315

None

>From a390183221bb1b419a15b975c87c4a631c635fcf Mon Sep 17 00:00:00 2001
From: Guillaume Chatelet <gchatelet at google.com>
Date: Fri, 24 Nov 2023 10:43:27 +0000
Subject: [PATCH] [libc][NFC] Remove dead code

---
 libc/src/__support/FPUtil/FloatProperties.h | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/libc/src/__support/FPUtil/FloatProperties.h b/libc/src/__support/FPUtil/FloatProperties.h
index 3be4b518be33843..35d6a14a9d32376 100644
--- a/libc/src/__support/FPUtil/FloatProperties.h
+++ b/libc/src/__support/FPUtil/FloatProperties.h
@@ -218,24 +218,6 @@ template <> struct FloatProperties<float128> {
 };
 #endif // LIBC_COMPILER_HAS_FLOAT128
 
-// Define the float type corresponding to the BitsType.
-template <typename BitsType> struct FloatType;
-
-template <> struct FloatType<uint32_t> {
-  static_assert(sizeof(uint32_t) == sizeof(float),
-                "Unexpected size of 'float' type.");
-  typedef float Type;
-};
-
-template <> struct FloatType<uint64_t> {
-  static_assert(sizeof(uint64_t) == sizeof(double),
-                "Unexpected size of 'double' type.");
-  typedef double Type;
-};
-
-template <typename BitsType>
-using FloatTypeT = typename FloatType<BitsType>::Type;
-
 } // namespace fputil
 } // namespace LIBC_NAMESPACE
 



More information about the libc-commits mailing list