box64 icon indicating copy to clipboard operation
box64 copied to clipboard

ST0.d!=0.0 can we judge double value != 0.0 through this?

Open ifquant opened this issue 4 years ago • 2 comments

hi, thanks for your great work. just some question. void arm_fscale(x64emu_t* emu) { if(ST0.d!=0.0) // can we judge double value != 0.0 through this? ST0.d *= exp2(trunc(ST1.d)); }

ifquant avatar Feb 07 '22 03:02 ifquant

That should be correct yes, why, you have some issue with this?

ptitSeb avatar Feb 07 '22 06:02 ptitSeb

thanks for reply. not still have issue with this, just learned fron classs ,say that ‘if( abs(f) <= 1e-15 ),then f=0’’,i will test it later.. i got there because i am going through all the helper function, and check is there more Optimization could be done.

ifquant avatar Feb 07 '22 08:02 ifquant