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

via libc-commits libc-commits at lists.llvm.org
Fri Nov 24 05:33:23 PST 2023


Author: Guillaume Chatelet
Date: 2023-11-24T14:33:19+01:00
New Revision: dc9787c87223540a6058aa1d0f647d6b0e1c53c7

URL: https://github.com/llvm/llvm-project/commit/dc9787c87223540a6058aa1d0f647d6b0e1c53c7
DIFF: https://github.com/llvm/llvm-project/commit/dc9787c87223540a6058aa1d0f647d6b0e1c53c7.diff

LOG: [libc][NFC] Remove dead code (#73315)

Added: 
    

Modified: 
    libc/src/__support/FPUtil/FloatProperties.h

Removed: 
    


################################################################################
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