19
19
#include < universal/verification/cfloat_test_suite.hpp>
20
20
// #include <universal/number/cfloat/table.hpp> // only used for value table generation
21
21
22
- #if BIT_CAST_IS_CONSEXPR
22
+ #if BIT_CAST_IS_CONSTEXPR
23
23
void ToNativeBug () { // now resolved... exponentiation was incorrect
24
24
using namespace sw ::universal;
25
25
constexpr size_t nbits = 32 ;
@@ -44,12 +44,12 @@ void ToNativeBug() { // now resolved... exponentiation was incorrect
44
44
// bit cast
45
45
uint32_t bc = std::bit_cast<uint32_t , float >(f);
46
46
std::cout << " float : " << to_binary (f) << ' \n ' ;
47
- std::cout << " smask : " << to_binary (ieee754_parameter<float >::smask, 32 , false ) << ' \n ' ;
48
- std::cout << " emask : " << to_binary (ieee754_parameter<float >::emask, 32 , false ) << ' \n ' ;
49
- std::cout << " fmask : " << to_binary (ieee754_parameter<float >::fmask, 32 , false ) << ' \n ' ;
50
- std::cout << " smask+bc : " << to_binary ((ieee754_parameter<float >::smask & bc), 32 , false ) << ' \n ' ;
51
- std::cout << " emask+bc : " << to_binary ((ieee754_parameter<float >::emask & bc), 32 , false ) << ' \n ' ;
52
- std::cout << " fmask+bc : " << to_binary ((ieee754_parameter<float >::fmask & bc), 32 , false ) << ' \n ' ;
47
+ std::cout << " smask : " << to_binary (ieee754_parameter<float >::smask, false , 32 ) << ' \n ' ;
48
+ std::cout << " emask : " << to_binary (ieee754_parameter<float >::emask, false , 32 ) << ' \n ' ;
49
+ std::cout << " fmask : " << to_binary (ieee754_parameter<float >::fmask, false , 32 ) << ' \n ' ;
50
+ std::cout << " smask+bc : " << to_binary ((ieee754_parameter<float >::smask & bc), false , 32 ) << ' \n ' ;
51
+ std::cout << " emask+bc : " << to_binary ((ieee754_parameter<float >::emask & bc), false , 32 ) << ' \n ' ;
52
+ std::cout << " fmask+bc : " << to_binary ((ieee754_parameter<float >::fmask & bc), false , 32 ) << ' \n ' ;
53
53
// uint32_t rawSignbits = (ieee754_parameter<float>::smask & bc);
54
54
uint32_t rawExponentBits = (ieee754_parameter<float >::emask & bc) >> ieee754_parameter<float >::fbits;
55
55
uint32_t rawFractionBits = (ieee754_parameter<float >::fmask & bc);
0 commit comments