Commit 2052def0 authored by leongs's avatar leongs

Same fix to p32_div

parent 47ebb0cb
......@@ -117,7 +117,7 @@ posit_2_t pX2_div( posit_2_t pA, posit_2_t pB, int x ) {
}
expA = tmp>>29; //to get 2 bits
fracA = ((tmp<<1) | 0x40000000) & 0x7FFFFFFF;
frac64A = fracA << 30;
frac64A = (uint64_t)fracA << 30;
tmp = (uiB<<2)&0xFFFFFFFF;
if (regSB){
......
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