摘要 |
<P>PROBLEM TO BE SOLVED: To realize an arithmetic unit suitably usable for, for example, scaling processing or the like, and capable of providing the remainder when dividing a dividend given as a floating point number by a divisor and the quotient (integral quotient), if necessary, in a shorter time. <P>SOLUTION: An arithmetic circuit 21 subtracts the exponent of a second register 12 storing the divisor from the exponent of a first register 11 storing the dividend. A control circuit 23 controls the arithmetic circuit 21 to repeat, at the time of left shift, the processing of setting 1 to the bottom digit of a third register 13 storing the product in case that the mantissa of the second register 13 can be subtracted from the mantissa of the first register 11 including the digit, and setting 0 to the bottom digit of the third register 13 in case that the subtraction cannot be performed, and the processing of shifting the mantissa of the first register 11 and the third register 12 by one digit to the left by the number of times of the substraction results of the exponents. <P>COPYRIGHT: (C)2005,JPO&NCIPI |