Revert "Revert "Specializing numeric_limits for float16 in any case""

This reverts commit a3d365b977.
This commit is contained in:
Vladyslav Baranovskyi
2024-11-07 16:28:29 +02:00
parent a3d365b977
commit f883d58f14

View File

@@ -236,7 +236,14 @@ namespace std
return hash<uint16_t>()(key.m_data);
}
};
}
#endif
#undef __has_keyword
namespace std
{
template <>
class numeric_limits<float16>
{
@@ -279,9 +286,5 @@ namespace std
};
}
#endif
#undef __has_keyword
typedef float16 fp16;
typedef float16 half;