CPC G06F 7/49947 (2013.01) [G06F 7/4836 (2013.01); G06F 2207/3844 (2013.01)] | 20 Claims |
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.
|