
OVERVIEW OF NUMERIC PROCESSING
were long real or temporary real, since these formats can handle exponents down to
Most computers underflow "abruptly:" they simply return a zero result, which is likely to produce an unacceptable final result if computatiol). continues. The 80287, on the other hand, underflows "gradu- ally" when the underflow exception is masked. Gradual underflow is accomplished by denormalizing the result until it is just within the exponent range of the destination format.- Denormalizing means incrementing the true result's exponent and inserting a corresponding leading zero in the significand, shifting the rest of the significand one place to the right. Denormal values may occur in any of the
The intent of the 80287's masked response to underflow is to allow computation to continue without program intervention, while introducing an error that carries about the same risk of contaminating the final result as roundoff error. Roundoff (precision) errors occur frequently in real number calculations; sometimes they spoil the result of computation, but often they do not. Recognizing that roundoff errors are often nonfatal, computation usually proceeds, and the programmer inspects the final results to see if these errors have had a significant effect. The 80287's masked underflow response allows program- mers to treat underflows in a similar manner; the computation continues and the programmer can examine the final result to determine if an underflow has had important. consequences. (If the underflow has had a significant effect, an invalid operation will probably be signalled later in the computation.)
Denormalization produces a denormal or a zero. Denormals are readily identified by their exponents, which are always the minimum for their formats; in biased form, this is always the bit string: 00...00. This same exponent value is also assigned to the zeros, but a denormal has a nonzero significand. A denormal in a register is tagged special. Tables
The denormalization process may cause the loss of
Table 1-7. Denormalization Process
Operation | Sign | Exponent(') | Significand | |
True Result | 0 | 1.l01 0111 00...00 | ||
Denormalize | 0 | 0.l1 01 | 0111 00...00 | |
Denormalize | 0 | U.lU1 01 0;;; 00 ...00 | ||
Denormalize | 0 | 0.l001 | 01 0111 00 ... 00 | |
Denormal Result(2) | 0 | 0.l001 | 01 0111 00 ... 00 | |
NOTES:
(') Expressed as unbiased, decimal number.
(2)Before storing, significand is rounded to 24 bits, integer bit is dropped, and exponent is biased by adding
126.