|
|
@ -323,7 +323,7 @@ int howManyBits(int x) { |
|
|
|
int rs1 = rs2r >> 1; |
|
|
|
int bits1_flag = (!!(rs1) << 31) >> 31; // 0xfffffff if not 0 |
|
|
|
int bits1 = 1; |
|
|
|
int rs1r = (bits1_flag & rs1) | ((~bits1_flag) & rs2r); // rs1, if rs1 not 0, rs2 if rs1 0 |
|
|
|
//int rs1r = (bits1_flag & rs1) | ((~bits1_flag) & rs2r); // rs1, if rs1 not 0, rs2 if rs1 0 |
|
|
|
int b1 = bits1_flag & bits1; |
|
|
|
|
|
|
|
int is0orneg1 = (!(x ^ (0))) | (!(x ^((1<<31)>>31))); |
|
|
|