GATE Computer ScienceVery hardGATE CSE · UGC NET
In IEEE 754 single precision with round-to-nearest-even, the value 0.1 (itself rounded to single precision) is added to an accumulator starting at 0 ten times, rounding after every addition. How does the final sum compare with 1.0?
- A. It is exactly 1.0
- B. It is one ulp (2⁻²⁴) below 1.0
- C. It is exactly one ulp (2⁻²³) above 1.0
- D. It is one ulp (2⁻²³) below 1.0
Correct answer: C. It is exactly one ulp (2⁻²³) above 1.0
Float32 accumulation of 0.1 ten times gives 1.00000011920929 = 1 + 1 × 2⁻²³, because 0.1 is stored slightly high and rounding errors do not cancel.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 16 × 16 unsigned multiplier generates 16 partial products, which are reduced to two rows by a Wallace tree of 3:2 carry-save adders…
- A DMA controller moves a 4 KB block over a 64-bit bus clocked at 100 MHz. Each burst needs 10 cycles of arbitration and then transfers 64…
- A branch is executed 20 times with the outcome pattern T, T, T, N repeated 5 times. A 2-bit saturating counter (states 0–3, predicts taken…
- L1 has a hit time of 1 cycle and a miss rate of 8%. The L2 hit time is 10 cycles and a main-memory access takes 120 cycles. The target…
- A 16-bit instruction has 5-bit address fields and expanding opcodes. There are 40 two-address instructions and 600 one-address…
- 80% of a program's execution time benefits from an enhancement that makes that portion 8 times faster; the rest is unchanged. The overall…