摘要 |
A method and system for determining whether a result d of a floating-point operation on operands a, b, c is tiny (may underflow) is disclosed. In one embodiment, a prediction whether d is tiny is made in hardware, but this prediction may include false results. Operands a, b, c are scaled to a', b', c' and then result d' from the floating-point operation on operands a', b', c' is calculated. A determination whether d will actually be tiny can be determined from the value of d'. A decision may then be made to proceed with either software or hardware calculations of d.
|