We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84f6e1d commit dc9787cCopy full SHA for dc9787c
libc/src/__support/FPUtil/FloatProperties.h
@@ -218,24 +218,6 @@ template <> struct FloatProperties<float128> {
218
};
219
#endif // LIBC_COMPILER_HAS_FLOAT128
220
221
-// Define the float type corresponding to the BitsType.
222
-template <typename BitsType> struct FloatType;
223
-
224
-template <> struct FloatType<uint32_t> {
225
- static_assert(sizeof(uint32_t) == sizeof(float),
226
- "Unexpected size of 'float' type.");
227
- typedef float Type;
228
-};
229
230
-template <> struct FloatType<uint64_t> {
231
- static_assert(sizeof(uint64_t) == sizeof(double),
232
- "Unexpected size of 'double' type.");
233
- typedef double Type;
234
235
236
-template <typename BitsType>
237
-using FloatTypeT = typename FloatType<BitsType>::Type;
238
239
} // namespace fputil
240
} // namespace LIBC_NAMESPACE
241
0 commit comments