Revert "Trying to pass float16 type explicitly via macro(ugly method)"

This reverts commit 6f2b637113.
This commit is contained in:
Vladyslav Baranovskyi
2025-02-20 22:05:55 +02:00
parent 6f2b637113
commit 297adcb88f
2 changed files with 10 additions and 7 deletions

View File

@@ -15,13 +15,10 @@
// map a half float type, if available, to float16
#if __has_keyword(_Float16)
typedef _Float16 float16;
#define UNDERLYING_FLOAT16_TYPE _Float16
#elif __has_keyword(__fp16)
typedef __fp16 float16;
#define UNDERLYING_FLOAT16_TYPE __fp16
#else
#define USING_CUSTOM_FLOAT16
#define UNDERLYING_FLOAT16_TYPE float16
class float16
{