Method for floating point round to integer operation
Abstract
An apparatus and method for computing a rounded floating point number. A floating point unit (FPU) receives an instruction to round a floating point number to a nearest integral value and retrieves a binary source operand having an exponent of a fixed first number of bits and a mantissa of a fixed second number of bits. If the unbiased exponent value is greater than or equal to zero and less than the fixed second number, the FPU generates a mask having N consecutive ‘1’ bits beginning with the least significant bit and whose remaining bits have a value of ‘0’, where N is equal to the fixed second number minus the unbiased exponent value. The FPU computes a bitwise OR of the source operand with the mask, increments the result if the instruction is to round up, and computes a bitwise AND of the result with the inverse of the mask.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A processor comprising: a decode unit; and a floating point unit configured to receive from the decode unit an instruction; wherein in response to determining the instruction corresponds to a floating point round to nearest integer instruction for a floating point number, the floating point unit is configured to: retrieve a binary source operand corresponding to the instruction; compute an unbiased exponent value; generate a binary mask based at least in part on said unbiased exponent value, wherein said mask indicates a least significant digit of a nearest integer value to the floating point
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (1)
- "Trace Cache: a Low Latency Approach to High Bandwidth Instruction Fetching"; Rotenberg, Eric, et al.; IEEE 1996; pp. 24-34.