This commit is contained in:
BLUELOVETH 2023-09-22 18:30:14 +08:00
parent 148900b4ed
commit 5266f625b8

View File

@ -197,7 +197,7 @@ inline PyObject* tag_float(f64 val){
// decomposed.print(); // decomposed.print();
// std::cout << "exp: " << decomposed.exp() << std::endl; // std::cout << "exp: " << decomposed.exp() << std::endl;
int exp_7b = decomposed.exp() - BitsCvt::C0; int exp_7b = decomposed.exp() - BitsCvt::C0;
std::cout << "exp_7b: " << exp_7b << std::endl; // std::cout << "exp_7b: " << exp_7b << std::endl;
if(exp_7b < BitsCvt::C1){ if(exp_7b < BitsCvt::C1){
exp_7b = BitsCvt::C1 - 1; // -63 + 63 = 0 exp_7b = BitsCvt::C1 - 1; // -63 + 63 = 0
decomposed.zero_mantissa(); decomposed.zero_mantissa();