ArticleslgStudy

computer science

Pentium FDIV bug

Pentium FDIV bug is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Pentium FDIV bug rather than just read about it. In short: The Pentium FDIV bug is a hardware bug affecting the floating-point unit (FPU) of the early Intel Pentium processors. Because of the bug, the processor would return incorrect binary floating point results when dividing certain pairs of high-precision numbers.

Pentium FDIV bug — main illustration
Pentium FDIV bug — illustration

Key takeaways

  • Pentium FDIV bug belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Pentium FDIV bug to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Pentium FDIV bug from memory before moving on to harder problems.

Reference excerpt

The Pentium FDIV bug is a hardware bug affecting the floating-point unit (FPU) of the early Intel Pentium processors. Because of the bug, the processor would return incorrect binary floating point results when dividing certain pairs of high-precision numbers. The bug was discovered in 1994 by Thomas R. Nicely, a professor of mathematics at Lynchburg College. Missing values in a lookup table used by the FPU's floating-point division algorithm led to calculations acquiring small errors. In certain circumstances the errors can occur frequently and lead to significant deviations. The severity of the FDIV bug is debated. Though rarely encountered by most users (Byte magazine estimated that 1 in 9 billion floating point divides with random parameters would produce inaccurate results), both the flaw and Intel's initial handling of the matter were heavily criticized by the tech community. In December 1994, Intel recalled the defective processors in what was the first full recall of a computer chip. In its 1994 annual report, Intel said it incurred "a $475 million pretax charge ... to cover replacement and write-off of these microprocessors."

Description In order to improve the speed of floating-point division calculations on the Pentium chip over the 486DX, Intel opted to replace the shift-and-subtract division algorithm with the Sweeney, Robertson, and Tocher (SRT) algorithm. The SRT algorithm can generate two bits of the division result per clock cycle, whereas the 486's algorithm could only generate one. The lookup table implemented was using a programmable logic array (PLA) with 2,048 cells, of which 1,066 cells should have been populated with one of five values: −2, −1, 0, +1, +2. When the Pentium's original array was compiled into the mask pattern used for fabrication, five values of +2 were not received by the lithography equipment. As a result, five array cells in the actual chips' etched PLAs that were supposed to contain +2 actually contained zero. As a result, calculations that rely on these five cells introduce errors, which can accumulate due to the SRT algorithm's recursive nature. In worst-case scenarios, the error can rise as high as the fifth significant digit of the result, though this is rare and the errors usually appear at the ninth or tenth significant digit. Only certain combinations of numerator and denominator trigger the bug, with one commonly-reported example being dividing 4,195,835 by 3,145,727. Performing this calculation in any software that used the floating-point coprocessor, such as Windows Calculator, would allow users to discover whether their Pentium chip was affected. The correct value of the calculation is:

When converted to the hexadecimal value used by the processor, 4,195,835 = 0x4005FB and 3,145,727 = 0x2FFFFF. The "5" in 0x4005FB triggers the access to the "empty" array cells. As a result, the value returned by a flawed Pentium processor is incorrect at or beyond four digits:

which is actually the value of 4,195,579 3,145,727 = 4,195,835 − 256 3,145,727 {\displaystyle \textstyle {\dfrac {4{,}195{,}579}{3{,}145{,}727}}={\dfrac {4{,}195{,}835-256}{3{,}145{,}727}}} .

… excerpt ends here. Continue reading the full article.

Illustrations

Pentium FDIV bug: 66 MHz Intel Pentium (sSpec=SX837) with the FDIV bug
66 MHz Intel Pentium (sSpec=SX837) with the FDIV bug

Worked examples

Example 1 — a first encounter with Pentium FDIV bug

Start with the simplest possible case. Write down what Pentium FDIV bug claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Pentium FDIV bug before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Pentium FDIV bug ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Pentium FDIV bug

In research
Pentium FDIV bug appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Pentium FDIV bug in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Pentium FDIV bug is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1994 in computing, Hardware bugs, Product recalls, so understanding it makes those chapters shorter.
In everyday life
Look for Pentium FDIV bug outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Pentium FDIV bug in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Pentium FDIV bug means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Pentium FDIV bug out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Pentium FDIV bug in simple terms?

The Pentium FDIV bug is a hardware bug affecting the floating-point unit (FPU) of the early Intel Pentium processors. Because of the bug, the processor would return incorrect binary floating point results when dividing certain pairs of high-precision numbers.

Why does Pentium FDIV bug matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Pentium FDIV bug?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Pentium FDIV bug.

Tags

  • 1994 in computing
  • Hardware bugs
  • Product recalls
  • X86 architecture

Keep exploring