Skip to content

Commit f813fa0

Browse files
committed
remove float16
1 parent adb783d commit f813fa0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

common/include/RevCommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
namespace SST::RevCPU {
3636

37-
using float16 = _Float16;
37+
// using float16 = _Float16;
3838

3939
/// Zero-extend value of bits size
4040
template<typename T>

include/RevInstHelpers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,12 @@ uint32_t fclass( T val ) {
115115
uint32_t i32;
116116
memcpy( &i32, &val, sizeof( i32 ) );
117117
return ( i32 & uint32_t{ 1 } << 22 ) != 0 ? QuietNaN : SignalingNaN;
118+
#if 0
118119
} else if constexpr( std::is_same_v<T, float16> ) {
119120
uint16_t i16;
120121
memcpy( &i16, &val, sizeof( i16 ) );
121122
return ( i16 & uint16_t{ 1 } << 9 ) != 0 ? QuietNaN : SignalingNaN;
123+
#endif
122124
} else {
123125
uint64_t i64;
124126
memcpy( &i64, &val, sizeof( i64 ) );

include/RevRegFile.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ struct uint_type<float> {
4747
static_assert( sizeof( type ) == sizeof( float ) );
4848
};
4949

50+
#if 0
5051
template<>
5152
struct uint_type<float16> {
5253
using type = uint16_t;
5354
static_assert( sizeof( type ) == sizeof( float16 ) );
5455
};
56+
#endif
5557

5658
template<typename T>
5759
using uint_type_t = typename uint_type<T>::type;

0 commit comments

Comments
 (0)