File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 34
34
35
35
namespace SST ::RevCPU {
36
36
37
- using float16 = _Float16;
37
+ // using float16 = _Float16;
38
38
39
39
// / Zero-extend value of bits size
40
40
template <typename T>
Original file line number Diff line number Diff line change @@ -115,10 +115,12 @@ uint32_t fclass( T val ) {
115
115
uint32_t i32 ;
116
116
memcpy ( &i32 , &val, sizeof ( i32 ) );
117
117
return ( i32 & uint32_t { 1 } << 22 ) != 0 ? QuietNaN : SignalingNaN;
118
+ #if 0
118
119
} else if constexpr( std::is_same_v<T, float16> ) {
119
120
uint16_t i16;
120
121
memcpy( &i16, &val, sizeof( i16 ) );
121
122
return ( i16 & uint16_t{ 1 } << 9 ) != 0 ? QuietNaN : SignalingNaN;
123
+ #endif
122
124
} else {
123
125
uint64_t i64 ;
124
126
memcpy ( &i64 , &val, sizeof ( i64 ) );
Original file line number Diff line number Diff line change @@ -47,11 +47,13 @@ struct uint_type<float> {
47
47
static_assert ( sizeof ( type ) == sizeof ( float ) );
48
48
};
49
49
50
+ #if 0
50
51
template<>
51
52
struct uint_type<float16> {
52
53
using type = uint16_t;
53
54
static_assert( sizeof( type ) == sizeof( float16 ) );
54
55
};
56
+ #endif
55
57
56
58
template <typename T>
57
59
using uint_type_t = typename uint_type<T>::type;
You can’t perform that action at this time.
0 commit comments