Commit be19ce0e authored by Cerlane Leong's avatar Cerlane Leong 💬

shift error

parent 63f141e3
/*============================================================================
This C source file is part of the SoftPosit Posit Arithmetic Package
......@@ -96,7 +95,7 @@ posit32_t q32_to_p32(quire32_t qA){
noLZ+=noLZtmp;
frac64A = tmp;
if (i!=7)
if (i!=7 && noLZtmp!=0)
frac64A+= ( uZ.ui[i+1]>>(64-noLZtmp) );
i++;
while(i<8){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment