Round for reround mode in a decimal floating point instruction
Abstract
A round-for-reround mode (preferably in a BID encoded Decimal format) of a floating point instruction prepares a result for later rounding to a variable number of digits by detecting that the least significant digit may be a 0, and if so changing it to 1 when the trailing digits are not all 0. A subsequent reround instruction is then able to round the result to any number of digits at least 2 fewer than the number of digits of the result. An optional embodiment saves a tag indicating the fact that the low order digit of the result is 0 or 5 if the trailing bits are non-zero in a tag field rather than modify the result. Another optional embodiment also saves a half-way-and-above indicator when the trailing digits represent a decimal with a most significant digit having a value of 5. An optional subsequent reround instruction is able to round the result to any number of digits fewer or equal to the number of digits of the result using the saved tags.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method for rounding a Decimal Floating Point number to a lesser precision in a computer processor, the method comprising: a) first emulating, by a computer processor, execution of a decimal floating point instruction to perform a decimal floating point operation utilizing a round-for-reround mode, the first emulating comprising: fetching from computer processor storage, by the computer processor, a decimal floating point operand having a first number of bits representing a first decimal number, the first decimal number having a first number of decimal digits of precision
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- Bernal et al, "integer Representation of Decimal Numbers for Exact Computations", Journal of Research of the National Institute of Standards and Technology, vol. 111, No. 2, Mar.-Apr. 2006, pp. 79-88. NPL filed with IDS with PTO in U.S. Appl. No. 14/943,254.
- IBM z/Architecture Preliminary Decimal Floating Point Architecture, Nov. 2006, SA23-2232-00; 4-1 through 4-2; 6-1 through 6-4; 9-1 through 9-2; 19-1; through 19-2; 20-1 through 20-42. NPL filed with IDS with PTO in U.S. Appl. No. 14/943,254.
- U.S. Appl. No. 10/930,129 o Schwarz et al, filed Aug. 31, 2004, now abandoned, Office Action dated Oct. 19, 2007 NPL filed with IDS with PTO in U.S. Appl. No. 14/943,254.
- U.S. Appl. No. 10/930,129 to Schwarz et al, filed Aug. 31, 2004, now abandoned, Final Office Action dated Dec. 21, 2007 NPL filed with IDS with PTO in U.S. Appl. No. 14/943,254.
- U.S. Appl. No. 10/930,129 to Schwarz et al, filed Aug. 31, 2004, now abandoned, NPL filed with IDS with PTO in U.S. Appl. No. 14/943,254.