Method and system for avoiding underflow in a floating-point operation
Abstract
A method and system for determining whether a result d of a floating-point operation on operands a, b, c is tiny (may underflow) is disclosed. In one embodiment, a prediction whether d is tiny is made in hardware, but this prediction may include false results. Operands a, b, c are scaled to a′, b′, c′ and then result d′ from the floating-point operation on operands a′, b′, c′ is calculated. A determination whether d will actually be tiny can be determined from the value of d′. A decision may then be made to proceed with either software or hardware calculations of d.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 5.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A system, comprising: a processor including a prediction unit to predict whether a result d of a floating-point operation on operands a, b, c might be tiny, also including a normalizer to normalize said a, b, c, also including a hardware floating-point module; and a memory to contain a floating-point software assist module, said floating-point software assist module to include a scaling module to scale said operands a, b, c to a′, b′, c′, and a tiny-ness determination module to determine whether said d might be tiny.
- Claim 2Depends on #1
The system of claim 1 , wherein said scaling module is to set said a′=a, said b′=b, and said c′=c when said b or said c is zero.
- Claim 3Depends on #2
The system of claim 2 , wherein said tiny-ness determination module is to determine said d is tiny when ed′ is less than e min .
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (5)
- Cornea-Hasegan, Marius A., et al., "Correctness Proofs Outline for Newton-Raphson Based Floating-Point Divide and Square Root Algorithms", Proceedings of the 14th IEEE Symposium on Computer Arithmetic, pp. 96-105 (Apr. 14-16, 1999).
- Hollasch, Steve, "IEEE Standard 754 Floating Point Numbers", 7 pages, updated Dec. 4, 2001, retrieved from http://research.microsoft.com/~hollasch/cgindex/coding/ieeefloat.html on Oct. 18, 2002.
- Intel Itanium Architecture Software Developer's Manual, vol. 1: Application Architecture, Revision 2.0, Document No. 245317-003, pp. i-xii, 1:1-1:8, 1:77-1:102, 1:129-1:130, 1:193-1:206, and Index-1 to Index-12 (Dec. 2001).
- Intel Itanium Architecture Software Developer's Manual, vol. 2: System Architecture, Revision 2.0, Document No. 245318-003, pp. i-xviii, 2:1-2:8, 2:371-2:374, 2:451-2:456, and Index-1 to Index-12 (Dec. 2001).
- Intel Itanium Architecture Software Developer's Manual, vol. 3: Instruction Set Reference, Revision 2.0, Document No. 245319-003, pp. i-xii, 3:1-3:8, 3:71, 3:79-3:80, 3:83, and Index-1 to Index-12 (Dec. 2001).