Patent ID: 6151612
Filing Date: 2000-11-21
Classification: H03M

Abstract:
A method, for use in a microprocessor unit (MPU), for converting a binary floating point number to a binary integer, comprising the steps of:a) storing a constant as a first operand having a fraction value of 0 and an exponent value of N-1 where N is a positive integer as the number of bits corresponding to the binary integer;b) loading the first operand and a second operand having a fraction value and an exponent value as the binary floating point number on a data bus;c) generating a difference value between the exponent value of N-1 contained in the first operand and the exponent value contained in the second operand loaded on the data bus;d) selecting a fraction having the fraction value of the second operand loaded on the data bus;e) shifting the fraction of the second operand right by the number of bits corresponding to the difference value; andf) rounding a bit value below a binary point contained in the fraction of the second operand shifted, thereby converting the second operand to the binary integer.