Enhanced fused multiply-add operation
Abstract
An apparatus, method, and system for performing an enhanced fused multiply-add operation is disclosed. In one embodiment, an apparatus includes an exponent unit. The exponent unit includes a first adder to generate S 1, where S 1 is the sum of an integer k, the exponent of a floating point value A, and the exponent of a floating point value B. The exponent unit also includes a comparator to generate E 1, where E 1 is the greater of S 1 and the exponent of a floating point value C. The apparatus also includes a partial multiplier, a shifter, and a second adder. The partial multiplier generates the partial products of the mantissas of A and B. The shifter aligns the partial products and the mantissa of C, based on E 1. The second adder adds the aligned partial products and the mantissa of C. The apparatus is able to generate not only (A*B+C), but is enhanced to also be able to generate (2 k *A*B+C) and the closest integer to (2 k *A*B) in two's complement or floating point format.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 23.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
An apparatus comprising: an exponent unit including: a first adder to generate S 1 , where S 1 is the sum of an integer k, the exponent of a floating point value A, and the exponent of a floating point value B; a comparator to generate E 1 , where E 1 is the greater of S 1 and the exponent of a floating point value C; a partial multiplier to generate partial products of the mantissas of A and B; a shifter to align the partial products and the mantissa of C, based on E 1 ; and a second adder to add the aligned partial products and the mantissa of C.
- Claim 2Depends on #1
The apparatus of claim 1 further comprising a multiplexer to set C to a constant in response to a control signal.
- Claim 3Depends on #2
The apparatus of claim 2 wherein the multiplexer is also to set the exponent of C to L minus 1, where L is based on a number of mantissa bits in the floating point format of
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗