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 3db0f8c commit 6267f12Copy full SHA for 6267f12
libc/src/__support/FPUtil/dyadic_float.h
@@ -101,6 +101,7 @@ template <size_t Bits> struct DyadicFloat {
101
return exponent + (Bits - 1);
102
}
103
104
+#ifdef LIBC_TYPES_HAS_FLOAT16
105
template <typename T, bool ShouldSignalExceptions>
106
LIBC_INLINE constexpr cpp::enable_if_t<
107
cpp::is_floating_point_v<T> && (FPBits<T>::FRACTION_LEN < Bits), T>
@@ -207,6 +208,7 @@ template <size_t Bits> struct DyadicFloat {
207
208
209
return FPBits(result).get_val();
210
211
+#endif // LIBC_TYPES_HAS_FLOAT16
212
213
template <typename T, bool ShouldSignalExceptions,
214
typename = cpp::enable_if_t<cpp::is_floating_point_v<T> &&
0 commit comments