GATE Computer ScienceModerateGATE CS (PYQ pattern)
In IEEE 754 single precision with round-to-nearest-even, which of these is correct for computing 1.0 + 2⁻²⁴ and (1 + 2⁻²³) + 2⁻²⁴?
- A. 1.0 + 2⁻²⁴ = 1 + 2⁻²³ and (1 + 2⁻²³) + 2⁻²⁴ = 1 + 2⁻²²
- B. 1.0 + 2⁻²⁴ = 1.0 and (1 + 2⁻²³) + 2⁻²⁴ = 1 + 2⁻²²
- C. 1.0 + 2⁻²⁴ = 1.0 and (1 + 2⁻²³) + 2⁻²⁴ = 1 + 2⁻²³
- D. 1.0 + 2⁻²⁴ = 1 + 2⁻²³ and (1 + 2⁻²³) + 2⁻²⁴ = 1 + 2⁻²³
Correct answer: B. 1.0 + 2⁻²⁴ = 1.0 and (1 + 2⁻²³) + 2⁻²⁴ = 1 + 2⁻²²
Both sums are exact ties (half the spacing 2⁻²³). Ties go to the neighbour whose last significand bit is 0: for 1.0 that is 1.0 itself; for 1 + 2⁻²³ (last bit 1) it is 1 + 2⁻²².
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- In IEEE 754 single precision with round-to-nearest-even, let x = 3 × 2⁻¹⁴⁹ (three times the smallest positive denormal). What are x / 2…
- A memory protects data with a SECDED Hamming code (single-error correction plus one overall parity bit for double-error detection). How…
- A virtually indexed, physically tagged cache is 32 KB, 4-way set-associative with 32-byte blocks, and pages are 4 KB. To avoid synonyms…
- A loop reads a[i] and then b[i] for i = 0..1023, where a and b are int arrays (4 bytes) starting at byte addresses 0 and 4096. The data…
- On a 5-stage pipeline with forwarding, 30% of instructions are loads. Half of them are followed immediately by a dependent instruction…
- After a section of a program was made 10 times faster, measurements on the improved program show that the improved section accounts for…