[libc-commits] [libc] [libc][NFC] Remove dead code (PR #73315)
via libc-commits
libc-commits at lists.llvm.org
Fri Nov 24 02:44:40 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Guillaume Chatelet (gchatelet)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/73315.diff
1 Files Affected:
- (modified) libc/src/__support/FPUtil/FloatProperties.h (-18)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/73315
More information about the libc-commits
mailing list