System and method for extracting the high part of a floating point operand
AssigneeSun Microsystems, Inc.
InventorGuy L. Steele JR.
Life of this patent
Estimating the term…
Abstract
A method and system determine a high part of a floating point operand. Exponent field bits and fraction field bits of a result are set to a zero if the determined format is an infinity format or an overflow format. The exponent field bits and the fraction field bits of the result are set to corresponding exponent field bits and corresponding fraction field bits of the floating point operand if the determined format is a not-a-number (NaN) format. At least one of the fraction field bits of the result is adaptively cleared if the determined format is a denormalized format or a delimited format.
Claims24
A method for determining a high part of a floating point operand comprising:
- determining a format of the floating point operand;
- setting a plurality of exponent field digits and a plurality of fraction field digits of a result to a zero if the determined format is one of a first group comprising an infinity format and an overflow format;
- setting the exponent field digits and the fraction field digits of the result to corresponding exponent field digits and corresponding fraction field digits of the floating point operand if the determined format is a not-a-number (NaN) format;
- and
- adaptively clearing at least one of the fraction field digits of the result if the determined format is one of a second group comprising a denormalized format and a delimited format, wherein the high part of the floating point operand is the result.
A computer-readable medium having instructions, which when executed perform a method for determining a high part of a floating point operand comprising:
- determining a format of the floating point operand;
- setting a plurality of exponent field digits and a plurality of fraction field digits of a result to a zero if the determined format is one of a first group comprising an infinity format and an overflow format;
- setting the exponent field digits and the fraction field digits of the result to corresponding exponent field digits and corresponding fraction field digits of the floating point operand if the determined format is a not-a-number (NaN) format;
- and
- adaptively clearing at least one of the fraction field digits of the result if the determined format is one of a second group comprising a denormalized format and a delimited format, wherein the high part of the floating point operand is the result.
A system for determining a high part of a floating point operand, comprising:
- an operand analysis circuit that determines a format associated with the floating point operand;
- a processing circuit that adaptively sets at least one digit of an intermediate result;
- and
- a result generator circuit that assembles a final result equal to the high part of the floating point operand based on the format of the floating point operand and the intermediate result.
Dependencies are inferred from the claim text.