摘要 |
PROBLEM TO BE SOLVED: To reduce an error in the lowermost bit of a shift operation result. SOLUTION: A barrel shifter 102 outputs a value obtained by shifting input data 105 to the right only by the specified bits to be shifted as shift data 107. An added value judge 103 outputs the uppermost bit out of respective bits of the input data 105 rounded off by shift operation as an added value. The uppermost bit is found out from the lowermost bit of the input data 105 as the (shifted number data 106-1)-bit. An adder 104 adds the added value 108 outputted from the judge 103 to the shift data 107 outputted from the barrel shifter 102 and outputs the added value as output data 109. |