Skip to content

Commit e522ece

Browse files
overmightygithub-actions[bot]
authored andcommitted
Automerge: [libc] Fix DyadicFloat::generic_as() requiring LIBC_TYPES_HAS_FLOAT16 (#147811)
See https://lab.llvm.org/buildbot/#/builders/215/builds/710.
2 parents 1ff5ed9 + 44582c9 commit e522ece

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libc/src/__support/FPUtil/dyadic_float.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ template <size_t Bits> struct DyadicFloat {
170170
return DyadicFloat(result_sign, result_exponent, result_mantissa);
171171
}
172172

173-
#ifdef LIBC_TYPES_HAS_FLOAT16
174173
template <typename T, bool ShouldSignalExceptions>
175174
LIBC_INLINE constexpr cpp::enable_if_t<
176175
cpp::is_floating_point_v<T> && (FPBits<T>::FRACTION_LEN < Bits), T>
@@ -277,7 +276,6 @@ template <size_t Bits> struct DyadicFloat {
277276

278277
return FPBits(result).get_val();
279278
}
280-
#endif // LIBC_TYPES_HAS_FLOAT16
281279

282280
template <typename T, bool ShouldSignalExceptions,
283281
typename = cpp::enable_if_t<cpp::is_floating_point_v<T> &&

0 commit comments

Comments
 (0)