US 12,190,078 B2
Rounding hexadecimal floating point numbers using binary incrementors
Michael Klein, Schoenaich (DE); Petra Leber, Ehningen (DE); Cedric Lichtenau, Stuttgart (DE); Stefan Payer, Stuttgart (DE); and Kerstin Claudia Schelm, Stuttgart (DE)
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION, Armonk, NY (US)
Filed by INTERNATIONAL BUSINESS MACHINES CORPORATION, Armonk, NY (US)
Filed on Mar. 25, 2022, as Appl. No. 17/705,036.
Prior Publication US 2023/0315386 A1, Oct. 5, 2023
Int. Cl. G06F 7/499 (2006.01); G06F 7/483 (2006.01)
CPC G06F 7/49947 (2013.01) [G06F 7/4836 (2013.01); G06F 2207/3844 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method of rounding hexadecimal floating point numbers using binary incrementors, the method comprising:
incrementing, by a first incrementor, a first subset of bits of an operand comprising a binary hexadecimal floating point operand;
incrementing, by a second incrementor, a second subset of bits of the operand;
generating, by a multiplexor, an intermediate result based on a carryout of the second incrementor;
generating, by correction logic if a carryout of the first incrementor is set, an incremented result based on the carryout of the first incrementor and one or more of: a first bit of the intermediate result or the carryout of the second incrementor; and
generating, by the correction logic if the carryout of the first incrementor is not set, the incremented result based on whether the first bit of the intermediate result is set.