摘要 |
A floating-point remainder computing unit computes a remainder R, by obtaining an integer quotient by rounding a floating-point variable C which is obtained from A/B and judging whether the remainder R can be obtained accurately, separately processing mantissa and exponent parts of floating-point variables B and C and separately obtaining the mantissa part Rf and the exponent part Re of the remainder R if the remainder R can be obtained accurately, and carrying out a floating-point add-subtract process which obtains the remainder R from A-B if C=+1 and A+B if C=-1 if the remainder R cannot be obtained accurately.
|