Why start with the Pentium?

Intel introduced new algorithms for eight x87 transcendental instructions with the original Pentium. Its manual describes how close the answers should be to the mathematical values. Within those bounds, two processors can round to different answers. Do they?

Intel describes the change in the processor manual, under “Transcendental Instruction Accuracy.” David Russinoff explains how two answers near a rounding boundary can both be acceptable in his 2007 paper on modeling these instructions.

Earlier work

In 2012, fgrieu reported testing x87 sine with a million pseudorandom inputs. A Pentium III and a Core i7 produced matching hashes of their results. Two AMD processors agreed with each other and gave a different hash from the Intel pair.

In 2025, Ken Shirriff read numerical constants from photographs of a Pentium chip. Among them were coefficients for the polynomials the chip used to approximate functions such as sine.

Those readings, Intel’s documentation, and measurements on hardware helped reconstruct the calculations in software. Before softfpu’s Rust implementation, the calculations were worked out and tested in C. That C prototype matched one Intel processor across 13.93 billion instruction executions. The survey uses softfpu to see whether other processors give the same answers.

Comparing processors

Every run starts with the same 384 cases, so we can compare machines on exactly the same inputs. Then it generates more cases from a fresh seed. The test covers four rounding modes and checks both the result bits and the relevant processor status flags.

If a Pentium and a newer chip disagree on the same input and settings, that’s evidence the behavior changed. If both give the same answer and softfpu gives another, the reconstruction deserves a closer look. Matching answers tell us how the chips behaved on those inputs. How they calculated them is a separate question.

Run the test or send a result