Two processors can return different final bits while correctly performing the calculations they were given. Neither needs a defective multiplier. One may execute multiplication and addition separately, while the other uses fused multiply-add, or FMA. The familiar expression a × b + c conceals a consequential choice: whether the intermediate product is rounded before the addition. Comparing answers becomes meaningful only after the program’s arithmetic promise has been made explicit.
This does not excuse arbitrary discrepancies. Each operation has defined semantics, and breaking those rules remains an error. However, an expression over real numbers and a sequence of operations in a finite format are different objects. Real arithmetic does not need to squeeze its intermediate product into a storage format. A separate floating-point multiplication does. FMA deliberately avoids that intermediate rounding and rounds the combined result once, after the addition has been included.
Intel’s discussion of floating-point programming tradeoffs explains why compiler transformations matter to accuracy and reproducibility. Here we will take one small example all the way through. It is an analytical calculation rather than a test of a particular processor. Its purpose is to identify a mechanism, without inventing measured results or suggesting that one CPU model is more honest at arithmetic than another.
Inputs that arrived without a rounding error
Consider IEEE 754 binary32, with 24 significant binary digits for ordinary normal numbers. Choose a = 1 + 2⁻²³, b = 1 − 2⁻²³, and c = −1. Every input is exactly representable. Consequently, this example does not begin with a decimal fraction that changed when the program read it. There is no hidden discrepancy between a value the author intended and the nearest value stored by the machine. The inputs deliberately remove that possible explanation so that the operations themselves remain visible.
The exact product is (1 + 2⁻²³)(1 − 2⁻²³) = 1 − 2⁻⁴⁶. Adding minus one leaves −2⁻⁴⁶. This is simply the difference-of-squares identity. The small negative result is also exactly representable in binary32: a power of two needs no long significand, and an exponent of −46 lies within the normal range. In a fused calculation, the final rounding therefore need not discard any part of this particular exact result.
Now perform the operations separately, using round to nearest with ties to even. The multiplication must first produce a binary32 value. Its exact value, 1 − 2⁻⁴⁶, is extremely close to one. The adjacent representable number below one is separated from it by 2⁻²⁴. Our subtraction is much smaller than half that gap, so the product rounds to one. Adding minus one afterward yields zero. The information about the small negative remainder has already disappeared before the addition begins.
The answers are thus zero for the separate operations and −2⁻⁴⁶ for FMA. This is not an error that accumulated through billions of calculations. A single multiply-and-add pair suffices. More importantly, the separate version obeyed every rounding rule we specified: it correctly rounded the product, then correctly added minus one to the stored product. The mistaken description would be to call both sequences the same operation on the format, as though the intermediate rounding made no difference.
In this example the zero answer has a large relative error against the nonzero exact result, even though the absolute difference is tiny. Saying that a discrepancy affects only the last bit can therefore be misleading too. Subtracting large, nearly equal quantities changes the scale of the answer. Assessment needs a justified reference: the exact result, an allowable absolute error, a vector norm, or some other quantity relevant to the problem. The visual impression made by many zeros after a decimal point is not an error analysis.

The accompanying pencil illustration is a metaphor for a finite grid and different routes through it. It is not a scale drawing of these numbers. The actual spacing near one and near 2⁻⁴⁶ cannot be represented by equal divisions on one convenient ruler. The powers of two above provide the proof. Keeping image and calculation distinct lets a conceptual illustration help the reader without pretending that it records an instrument reading or a measured processor behavior.
It is useful to check b explicitly. Immediately below one, binary32 spacing is 2⁻²⁴, so 1 − 2⁻²³ sits two such steps below one. Immediately above one, spacing is already 2⁻²³, making a the next larger representable neighbor. The unequal gaps arise from the change in binary exponent, not from a flaw in the format. These details prevent an unnoticed substitution of inputs. If a factor had rounded before multiplication, the example would demonstrate a different mechanism. Here both factors and the addend are exact; the loss occurs specifically when the product is stored before subtraction.
A more accurate answer can fail a comparison
NVIDIA’s explanation of floating-point arithmetic describes the single-rounding principle that helps explain both CPU and GPU results. For one expression, FMA rounds the exact sum of the product and addend. With ordinary finite operands this avoids an intermediate product error. Nevertheless, the correctness of a numerical algorithm cannot be reduced to replacing every eligible pair automatically. An algorithm may rely on properties of a particular sequence of roundings. Its reasoning must be examined at the same level of specificity as its implementation.
Imagine a library whose reference files have been generated for years using separate operations. A new build uses a fused instruction and produces the nonzero remainder in our example. A bitwise comparison reports a change. That report is correct: the output bits differ. It does not establish that the new build is farther from the exact mathematical answer. In this case it is closer. A quality check needs to distinguish preserving an implementation’s historical output from checking a mathematical property of the result.
The reverse confusion is equally serious. Matching an old file does not prove adequate accuracy for a new problem. Two implementations can consistently discard the same significant quantity. Reproducibility asks whether a result repeats under specified conditions; accuracy asks how it relates to a defined correct value. Both may be required together. They still need separate formulations, or the word correct quietly changes meaning halfway through the discussion and the team starts defending incompatible claims with the same vocabulary.
Parallel summation introduces another mechanism. Changing the addition tree changes rounding order even without FMA. A sum of positive and negative terms can depend on grouping. A fused instruction does not therefore explain every difference between runs using different thread counts. An investigation must recover the actual computation: data partitioning, reduction order, intermediate formats, and mathematical library calls. The proposed cause should match the executed operations rather than merely name a familiar instruction that happens to be available on the machine.
The format of a stored array also does not completely determine the format and sequence of every intermediate calculation. Conversions, library functions, and alternative instructions may intervene. Assigning a temporary variable in source code is not a universal prohibition on contraction. The language, compiler mode, and specific construct determine what transformations are permitted. Reading two adjacent source lines is insufficient when the dispute concerns whether rounding to binary32 was actually mandatory between them. The source expresses a contract through a language and toolchain, not through typography alone.
The GCC optimization manual documents floating-point contraction control through -ffp-contract separately from transformations associated with fast mathematical modes. Those are rules for a particular compiler, not laws shared by every toolchain. A familiar optimization-level name cannot establish every version’s policy for every target. A reproducible build description needs the version, target architecture, and effective options, especially when a library dispatches among implementations using different CPU capabilities. Guessing from the executable’s filename loses precisely the conditions that matter here.
Likewise, FMA in a processor capability list does not establish that a program used it. Runtime dispatch can select another path; the compiler can leave the expression separate; the computation can be hidden inside a library. Explaining an observed result requires evidence about the executed code for the relevant calculation. The feature list establishes an available implementation technique. Moving from availability to a claim about a particular answer requires another piece of evidence, rather than a retail product description or a photograph of the processor package.
FMA semantics and throughput deserve separate treatment. Reducing an instruction count does not imply a universal application speedup. Dependencies, data supply, vector width, and unrelated work affect elapsed time. This article measures no cycles, energy, or performance for any CPU model. Its demonstrated result is narrower: a specified rounding location changes the answer to a specified expression. That remains useful without promising that every eligible program will accelerate by a fixed factor after contraction is enabled.
Exactly representable inputs make a good starting point for checking the reasoning. They avoid combining decimal-conversion error, multiplication error, and final-addition behavior in one unexplained difference. Once the mechanism is clear, real application data and sensitivity can be examined. This does not mean all validation should use artificial powers of two. Those values isolate an arithmetic property; whether a result is sufficient for an application depends on the application’s actual magnitudes and mathematical requirements. Isolation explains a cause without pretending to characterize the entire workload.
Round to nearest was a condition of our result, not decoration around the formula. Other rounding directions change intermediate answers. Exceptional values, overflow, and the treatment of very small numbers require their own rules. They cannot be inferred wholesale from an example using ordinary finite normal values. Specifying the domain strengthens the proof: another reader can reproduce it without silently changing the arithmetic environment and can identify which newly introduced condition calls for a separate argument.
A comparison tolerance is also part of the mathematical contract. A constant absolute threshold may make sense near zero but behave poorly at large scales; a purely relative threshold becomes awkward when the reference is zero. No magical number of printed decimal places resolves that choice. The tolerance must reflect what the problem considers significant. Our remainder, −2⁻⁴⁶, shows why assessment begins with the result’s role rather than a habit of treating every nonzero discrepancy as evidence of defective hardware.
The expression a × b + c has an exact mathematical value. The program additionally decides where a result must enter the finite grid of representable numbers. That decision separated zero from −2⁻⁴⁶. With it stated explicitly, comparing CPUs becomes a discussion of the arithmetic contract they executed, rather than a competition over which device printed a more familiar-looking answer. Sources were checked on October 23, 2026; all numerical values in the example were derived analytically.



