Manuscript Offprint
arXiv:2611.08371Lord of the Precision, the Two Floats: Double-Word Arithmetic for Complex Numbers
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Datacenter GPUs increasingly favor low-precision floating-point formats, offering higher throughput than FP64. Double-word (DW) arithmetic represents numbers as unevaluated sums of two floating-point values, providing higher accuracy. We present the first error analysis of complex DW multiplication and division. Both operations reduce to sums of two DW products, combined using one of three DW addition algorithms: accurate, sloppy, or Madd. Normalizing DW products ensures nonoverlapping components, but omitting this step reduces the number of arithmetic operations. We bound the resulting overlap and prove that Madd retains a relative error bound of for overlapping inputs, where is the unit roundoff. For all variants, we establish relative error bounds of the form , where is the condition number of the sum of products. Our analysis shows that the less expensive sloppy addition suffices. We implement these variants in CompleXDW, an open-source C++ library for CPUs and GPUs. In the high-energy physics code MadGraph7, FP32-based DW arithmetic achieves up to and higher throughput than FP64 on NVIDIA L40S and AMD Radeon Pro W7900 GPUs, respectively, while losing approximately 1.4 correct significant digits.
Keywords: double-word arithmetic, complex arithmetic, floating-point error analysis, error-free transformations, GPU computing, high-energy physics, Monte Carlo event generation
*frantisek.stloukal@cern.ch †fabienne.jezequel@lip6.fr
1 Introduction
In recent years, a performance plateau or even decline has been observed for the FP64 floating-point type in the realm of datacenter-grade GPUs. At the same time, FP64 floating-point precision remains essential for scientific computing, while vendors have increasingly focused on the development of hardware for machine learning applications, which benefit from the higher performance offered by lower-precision types. One way to address this issue is to achieve the required precision through computations performed with lower-precision types, taking advantage of their higher computational throughput. Several approaches have been proposed, including the emulation of floating-point matrix multiplication using integer arithmetic [29, 27], compensated algorithms [26], and multi-word arithmetic [13, 19, 24, 16].
The latter approach is particularly promising when encapsulated in a well-defined type, as it provides an algorithm-agnostic way to leverage lower-precision performance. The idea relies on representing a number as an unevaluated sum of floating-point words. Subsequently, algorithms defining arithmetic operations over such representations are used to evaluate numerical operators and algebraic functions. Despite extensive research on multi-word arithmetic, no error analysis of complex double-word arithmetic has, to the best of our knowledge, been published. Such an analysis is relevant to numerous fields that rely on complex arithmetic, including quantum physics, signal and image processing, fluid dynamics, and structural mechanics. To fill this gap, we build on recent advances in double-word arithmetic and extend them to complex arithmetic.
In double-word arithmetic, the two floating-point components are referred to as the high and low components. Normalization ensures that they do not overlap. Arithmetic operations rely on error-free transformations (EFTs), which recover rounding errors exactly under suitable assumptions [8, 20]. Rigorous error bounds have been established for basic double-word operations, alongside new division algorithms [19]. Subsequent formal verification of these results led to tighter bounds for several operations [24]. Further work introduced and automatically verified a new double-word addition algorithm, named Madd by its authors, with a tighter error bound than the previous best-known algorithm [34, 35]. The analysis of double-word addition has also been extended to inputs with moderately overlapping components [32, 33].
This paper is devoted to complex double-word arithmetic, with particular emphasis on multiplication and division. Our contributions are as follows:
-
We provide the first error analysis of complex double-word multiplication and division. Since these operations combine double-word multiplications and additions, we establish error bounds for variants using different addition algorithms, with and without intermediate normalization.
-
Building on the approach of omitting the final renormalization step of double-word multiplication [32, 33], we investigate the resulting performance gains in complex arithmetic. Although this omission introduces overlap in the inputs to subsequent additions, we prove that Madd remains accurate and is more robust than alternative addition algorithms.
-
We compare the accuracy and performance of these variants, assessing the trade-offs between addition algorithms and normalization strategies.
-
We develop the open-source ComplexXDW library for complex double-word arithmetic targeting CPUs, including SIMD implementations, and GPUs through CUDA and HIP. In a high-energy physics application on GPUs, the library achieves nearly three times the throughput of native FP64 arithmetic.
The paper is structured as follows. Section 2 introduces the notation and the basic principles of floating-point arithmetic and error-free transformations (EFTs). Section 3 reviews the double-word algorithms used in this work and their known error bounds. Section 4 investigates the robustness of double-word addition algorithms when the input components overlap. Section 5 bounds the overlap between the result components of double-word multiplication and squaring when the final renormalization step is omitted. Sections 6 and 7 build on these results to derive error bounds for the different variants of complex multiplication and division and compare their operation counts. Section 8 presents the CompleXDW library and numerical experiments evaluating accuracy on random inputs with varying condition numbers and through a worst-case search, CPU performance, and accuracy and throughput in a high-energy physics application on GPUs. Section 9 discusses related work, and Section 10 concludes the paper.
2.1 Notation
In this paper, we assume an IEEE 754-compliant [17] radix-2 floating-point system with p-bit precision. We denote the set of representable floating-point numbers by
We assume that neither overflow nor underflow occurs. Throughout this work, unless explicitly stated otherwise, we consider only the round-to-nearest (RN(·)) floating-point rounding mode and we define the unit roundoff as
We use the standard floating-point model, under which, for the basic arithmetic operations,
We use the following notation for floating-point quantities. For , the unit in the first place is defined by
The unit in the last place is given by
We further denote by the weight of the least significant nonzero bit in the binary representation of x. More precisely,
where is uniquely determined. For completeness, we set
We will also use Sterbenz's lemma, which states that the subtraction of two sufficiently close floating-point numbers is exact.
Lemma 2.1 (Sterbenz's lemma [28, Theorem 4.3.1]). If satisfy
then is exactly representable as a floating-point number.
Sterbenz's lemma can also be applied to the addition of two numbers with opposite signs. In particular, if and
then, after possibly interchanging and , the subtraction corresponding to satisfies the conditions of Lemma 2.1. Consequently,
Another notation that we will frequently use is the cancellation ratio
When , the operands have opposite signs and comparable magnitudes; hence, by Sterbenz's lemma, the addition of and is exact. Thus, cancellation may expose errors already present in the operands, but the final addition introduces no further rounding error.
2.2 Error-free transformations (EFTs)
An error-free transformation (EFT) [22, 8, 20, 26] computes the rounded result of a floating-point operation together with its exact rounding error, such that their unevaluated sum equals the exact result of the corresponding real operation. For floating-point numbers and , the algorithms TwoSum() and FastTwoSum() are error-free transformations of addition: they return such that
They differ in their applicability and operation counts:
-
TwoSum. The algorithm applies to arbitrary floating-point numbers and and requires six floating-point arithmetic operations.
-
FastTwoSum. The algorithm requires , or, more generally, , where and are the exponents of and , respectively. It requires three floating-point arithmetic operations.
TwoProd and TwoProdFMA are the error-free transformations of multiplication. For floating-point numbers and , they return such that
provided that no underflow occurs.
-
TwoProd. Dekker's algorithm [8] uses Veltkamp's splitting to split each input, and , into two parts. It requires 17 floating-point arithmetic operations.
-
TwoProdFMA. This algorithm takes advantage of the fused multiply-add (FMA) operation to compute the same result using only two floating-point arithmetic operations, one multiplication and one FMA.
The following lemma from [33] provides conditions under which FastTwoSum is exact even when the usual assumption does not hold. Although established for faithful rounding, the result is used throughout this paper only with rounding to nearest.
Lemma 2.2. Assume that the floating-point numbers satisfy
Then the pair returned by FastTwoSum satisfies
3 Arithmetic operators on double-word numbers
We present here the algorithms for double-word numbers that will be used throughout this paper to emulate standard unary and binary arithmetic operations. Let be a normalized double-word representation, that is,
Moreover, let , and satisfy the conditions to be normalized double-word representations. Depending on the operation, an algorithm takes either a single double-word operand in the unary case or two operands and in the binary case. The result is , which is re-normalized by applying FastTwoSum as the final step of each algorithm.
3.1 Addition of two double-word numbers
We compare three algorithms for adding two double-word numbers in terms of both performance and accuracy. Throughout the remainder of this paper, we denote by the exact sum of the inputs to these addition algorithms.
3.1.1 Sloppy algorithm
Algorithm 1 (SloppyDWPlusDW) [13] is relatively efficient, requiring only 11 floating-point operations. However, its relative error can be as large as 1 because of cancellation between and [19]. Its use is therefore recommended only when such cancellation can be excluded, for example when the operands are known to have the same sign.
(s_h, s_l) ← TwoSum(x_h, y_h);
v ← RN(x_l + y_l);
w ← RN(s_l + v);
(z_h, z_l) ← FastTwoSum(s_h, w);
return (z_h, z_l)
Algorithm 1: SloppyDWPlusDW()
The relative error can be very large; however, the following proposition provides a bound on the absolute error.
Proposition 3.1. Assume that the FastTwoSum( ) instruction is an error-free transformation. Then Algorithm 1 (SloppyDWPlusDW) satisfies up to leading order the absolute error bound
Proof. First, the algorithm computes
Since TwoSum is an error-free transformation,
Next, it computes
By the standard floating-point model,
Using the normalization assumptions,
(3.3)
The algorithm then computes
so that
Finally,
Under the stated assumptions on FastTwoSum, this transformation is error-free, and hence
Therefore,
Using (3.2),
Thus the total error is
It remains to bound . Since
and TwoSum is error-free,
Hence the standard rounding-error bound gives
Furthermore,
(3.6)
Combining (3.5) and (3.6),
Consequently,
Finally, combining (3.3), (3.7), and (3.4),
Thus
Since the inputs are normalized, and , hence
□
3.1.2 Accurate algorithm
For , the relative error of Algorithm 2 (AccurateDWPlusDW) [13] is bounded by , independently of the cancellation between and [19].
Algorithm 2: AccurateDWPlusDW()
Proposition 3.2. Assume that , then Algorithm 2 (AccurateDWPlusDW) satisfies up to leading order the absolute error bound
Proof. The relative error bound for Algorithm 2 gives
and .
3.1.3 More accurate algorithm
A more accurate double-word addition algorithm, Algorithm 3 (Madd), was introduced in [35, 34]. We retain the name Madd used in those references. A floating-point accumulation network (FPAN) is a branch-free network of floating-point additions and error-free transformations that accumulates its inputs into a nonoverlapping floating-point expansion. The network of Algorithm 3 was discovered by a simulated-annealing search over candidate FPANs, and its error bound was formally established by reducing an abstraction of the floating-point computation to a problem solved by an SMT solver. It requires the same number of floating-point operations as Algorithm 2, but has the tighter relative error bound .
Algorithm 3: Madd()
Proposition 3.3. Algorithm 3 (Madd) satisfies up to leading order the absolute error bound
The proof follows that of Proposition 3.2, with the leading constant 3 replaced by 2.
3.2 Multiplication of two double-word numbers
Several algorithms have been proposed for multiplying double-word numbers, with different trade-offs between accuracy and computational cost [8, 19]. We use the FMA-based Algorithm 4 (DW-TimesDW2) of [19]. Its relative error was initially bounded by in [19], before this bound was sharpened to in [24]. Requiring eight floating-point operations, Algorithm 4 provides a good compromise between accuracy and performance.
Algorithm 4: DWTimesDW2()
3.3 Square of a double-word number
For a double-word number , we compute its square using Algorithm 5 (DWPow2), a specialization of Algorithm 4 that exploits the fact that the two operands are identical. This specialization reduces the computational cost and has a relative error bounded by [16].
Algorithm 5: DWPow2()
3.4 Division of two double-word numbers
Several algorithms for double-word division are available. We consider two algorithms presented by Joldes et al. [19], Algorithm 6 (DWDivDW2) and Algorithm 7 (DWDivDW3). In Algorithm 6, DWTimesFP1 denotes the algorithm for multiplying a double-word number by a floating-point number. In Algorithm 7, DWTimesFP3 and DWPlusFP denote, respectively, the algorithms for multiplying a double-word number by a floating-point number and adding a floating-point number to a double-word number.
Algorithm 6: DWDivDW2()
Algorithm 6 requires 18 floating-point operations and has a relative error bound of , provided that and . In complex arithmetic, the two divisions used to compute the real and imaginary components therefore account for 36 floating-point operations, in addition to the other operations involved in the complex division.
Algorithm 7, first computes a double-word approximation of the reciprocal of the denominator and then multiplies it by the numerator. The reciprocal can be computed once and reused for both components in complex division.
Algorithm 7: DWDivDW3()
The original version of Algorithm 7 [19] requires 31 floating-point operations: 22 to compute the reciprocal and 9 to perform the final multiplication using DWTimesDW3. Its relative error is bounded by for and . This bound was derived in [19] using the then-available relative error bound for DWTimesDW3, which was subsequently improved to in [24]. The restriction on prevents its use with binary16 and bfloat16 formats, for which and , respectively.
We replace the final multiplication by Algorithm 4, which requires 8 floating-point operations instead of 9 and whose relative error bound was improved from in [19] to in [24]. This matches the bound used in [19] for DWTimesDW3, the original final multiplication. The relative error bound for the division therefore remains . Moreover, because the reciprocal can be reused in complex division, only the final multiplication needs to be performed separately for the real and imaginary components. Using the 8-flop Algorithm 4, the reciprocal and the two final multiplications therefore account for floating-point operations.
4 Double-word addition with overlapping inputs
The error bounds for the double-word addition algorithms in Section 3.1 assume normalized inputs. If re-normalization is omitted in preceding computations, these algorithms may receive unnormalized inputs. We account for possible overlap between the components of a double-word number by assuming that , where is an overlap parameter. Such overlap does not necessarily compromise the error-free property of the FastTwoSum operations within these addition algorithms. In this section, we first recall the results of Yang et al. [32, 33], which give sufficient conditions on the overlap parameter for the FastTwoSum operations in Algorithms 1 (SloppyDWPlusDW) and 2 (AccurateDWPlusDW) to remain error-free. We then establish corresponding conditions for both FastTwoSum operations in Algorithm 3 (Madd). Finally, we derive error bounds for all three addition algorithms with overlapping double-word inputs.
4.1 Validity of FastTwoSum operations
Theorem 4.1 was established in [33] for both round-to-nearest and faithful rounding. Here, we retain only the result for round-to-nearest.
Theorem 4.1 (Theorem 3.2 in [33]). Assume that and let there be two numbers and residing within the interval . If the conditions and are satisfied, then the FastTwoSum operation in Algorithm 1 (SloppyDWPlusDW) is guaranteed to be error-free with round-to-nearest.
For the proof, see [33]. A similar result holds for the FastTwoSum operations in Algorithm 2 (AccurateDWPlusDW).
Theorem 4.2 (Theorem 3.3 in [33]). Assume that and let there be two numbers and residing within the interval . If the conditions and are satisfied, then both FastTwoSum operations in Algorithm 2 (AccurateDWPlusDW) are guaranteed to be error-free with round-to-nearest.
Theorem 4.2 is stated in [33] for both round-to-nearest and faithful rounding, with an additional condition in the latter case. Here, we consider only round-to-nearest. The proof for this case is sketched in [33], whereas a proof for faithful rounding is provided in [33]. We therefore give a complete proof for round-to-nearest below.
Proof. Let and . Then , and in particular .
Case 1: . By (2.1), either or . In both cases . Since and are floating-point numbers, this gives
From and we obtain
Using and ,
Hence , and FastTwoSum is error-free.
Next, , so
Moreover, , which gives and . Therefore
Hence FastTwoSum is error-free.
Case 2: . By Sterbenz lemma 2.1, . Hence and .
We first show that FastTwoSum is error-free. If , or , this is immediate. Otherwise
Since , both and are integer multiples of . Hence so is , and . From we get . Lemma 2.2 therefore applies.
Consequently, the last three steps of Algorithm 2 return the same values as Algorithm 1 applied to and . Since , both pairs satisfy the hypotheses of Theorem 4.1 with overlap parameter 1. Hence the final FastTwoSum is error-free.
We now develop an analogous argument for Algorithm 3.
Theorem 4.3. Assume that and let there be two numbers and residing within the interval . If the conditions and are satisfied, then the first FastTwoSum operation in Algorithm 3 (Madd) is guaranteed to be error-free with round-to-nearest.
Proof. The first TwoSum operation is the same in Algorithm 3 and Algorithm 1. Then in Algorithm 3 is equal to v in Algorithm 1. So we consider a FastTwoSum operation using the notations of Algorithm 1.
Denote by . First we give a bound of .
If , the FastTwoSum algorithm is error-free. Otherwise . Then and must have different signs (shown below) and . To apply Lemma 2.2, we need to show . Indeed, suppose instead that and have the same sign. Then there is no cancellation, and
Since
we have
On the other hand,
hence
Therefore,
Thus, whenever
we obtain
contradicting the assumption .
In particular, gives , hence .
Without loss of generality, here we assume that .
Let
then
From we have
Therefore,
which implies that and meet the condition in Sterbenz Lemma, thus . Moreover
While
Because and ,
Hence
Since , Lemma 2.2 applies (if , FastTwoSum is trivially exact), and the first FastTwoSum in Algorithm 3 is error-free.
Theorem 4.4. Provided that the assumptions of Theorem 4.3 are satisfied, the second FastTwoSum operation in Algorithm 3 (Madd) is guaranteed to be error-free with round-to-nearest.
Proof. After its first two TwoSums, Algorithm 3 performs Algorithm 1 on the pairs and , except that the first TwoSum of Algorithm 1 is a FastTwoSum in Algorithm 3. Given the previously proven validity of the first FastTwoSum in Algorithm 3 by Theorem 4.3 it is error-free and therefore by uniqueness of the returned values equivalent to TwoSum.
The first two TwoSums are error-free and therefore, and , which satisfies the hypotheses of Theorem 4.1 with . Hence, the second FastTwoSum operation in Algorithm 3 is guaranteed to be error-free in RN.
4.2 Error analysis
Building on the results of the preceding subsection, we prove the error bounds stated without proof in [32] for Algorithms 1 and 2, and establish an error bound for Algorithm 3, in each case allowing overlapping inputs.
Theorem 4.5. Assume that and let there be two numbers and residing within the interval . We assume that , and denote . Then Algorithm 1 (SloppyDWPlusDW) satisfies up to leading order the absolute error bound
Proof. By Theorem 4.1, the final FastTwoSum is error-free, even when its usual precondition does not hold. Since TwoSum is error-free, we have
Moreover,
so is exactly the rounding error of . Hence, in round-to-nearest,
Now the algorithm computes
Thus
Assume that the low parts satisfy
Then
Therefore,
Next,
So
By (4.10), in round-to-nearest,
so, with (4.9) and (4.11),
Neglecting high order terms,
Hence
Finally,
Since FastTwoSum is error-free,
Using (4.8), (4.10), and (4.13), we obtain
Therefore the absolute error is
Using (4.12) and (4.14), we get
Thus,
Since and , we have and , hence
This agrees, to leading order in , with the bound stated in [33], where only a brief proof sketch is provided.
Theorem 4.6. Assume that and let there be two numbers and residing within the interval . If , , and , then Algorithm 2 (AccurateDWPlusDW) satisfies up to leading order the absolute error bound
Proof. By Theorem 4.2, the FastTwoSum operations in Algorithm 2 are error-free with round-to-nearest. Since TwoSum is error-free,
Moreover, since , the term is the rounding error of . Hence, in round-to-nearest,
Again, TwoSum is error-free, so
Assume that
Then
Since , we have, in round-to-nearest,
and we have, up to terms of order ,
The next step is
Thus there exists a rounding error such that
Using (4.16) and (4.18),
Since FastTwoSum is error-free,
Moreover,
Also,
The algorithm then computes
Hence
Using (4.19) and (4.20),
up to terms of order .
Since FastTwoSum is error-free,
Therefore,
Using (4.15) and (4.17),
Thus
Using the bounds above,
Hence
Since and , we have and , hence
Theorem 4.7. Assume that and let there be two numbers and residing within the interval . If , , then Algorithm 3 (Madd) satisfies up to leading order the absolute error bound
Proof. Let .
Define
Since TwoSum is error-free,
and
Since the first FastTwoSum is error-free (Theorem 4.3),
Let
and
The final FastTwoSum is error-free (Theorem 4.4), hence
Therefore
Since is the rounding error of ,
Also,
so
Hence
Next,
Since
we obtain
Moreover,
Therefore
Combining the two bounds,
Thus
Since and , we have and , hence
Theorem 4.7 shows that Algorithm 3 (Madd) is robust to overlap in its inputs. As already mentioned, after its first two calls to TwoSum, Algorithm 3 is equivalent to Algorithm 1 (SloppyDW-PlusDW) applied to and . Since TwoSum is error-free, and , so the bound of Theorem 4.5 applies with . Again, the leading-order term of the bound is . In other words, Algorithm 3 first normalizes the sums of the high words and of the low words, which removes the overlap before Algorithm 1 takes place. This equivalence also yields a relative error bound for Algorithm 3 with overlapping inputs, which, like the absolute one, does not depend on the overlap.
Theorem 4.8. Under the conditions of Theorem 4.3, the relative error bound of Algorithm 3 (Madd) has the leading order term .
Proof. Let , and , so that . Further, let . Since TwoSum is error-free,
with and , so and are normalized double-word numbers. By Theorems 4.3 and 4.4, both FastTwoSum operations of Algorithm 3 are error-free. The first FastTwoSum in Algorithm 3 therefore returns the same pair as the initial TwoSum in Algorithm 1 when applied to and . The subsequent operations also produce identical values, so both algorithms return the same result for these intermediate double-word numbers, whose exact sum is . We distinguish three cases.
Case 1, or . If , then and , so , , and . Hence . The case is symmetric and gives . Case 2, . Then and have opposite signs and . Since and ,
Since , we have , and with from the assumptions,
If and had the same sign, we would have , so they have opposite signs.
Assuming without loss of generality that , we get
Hence , and Lemma 2.1 gives , so and . Since , Lemma 2.1 also gives , so and . Then and , and since the final FastTwoSum is error-free,
Case 3, and . If and have opposite signs, the relative error of Algorithm 1 with normalized inputs is at most since , by [32, Theorem 3.4]. If and have the same sign, the exact values and of the two normalized inputs also have the same sign. By the symmetry of round-to-nearest, we may assume that they are nonnegative, and the relative error of Algorithm 1 is then at most [11, Theorem 4.1].
The proof shows that the high words and can cancel severely only if and themselves cancel so much that is exact by Lemma 2.1, and Algorithm 3 then returns the exact sum .
5 Evaluation of overlap in unnormalized operations
In this section, we bound the overlap in the results of double-word multiplication and squaring when normalization is omitted, that is, when the final call to FastTwoSum in each algorithm is skipped.
5.1 Overlap in double-word multiplication
Yang et al. [32, 33] provide an overlap bound for double-word multiplication without final normalization, together with a proof sketch based on a unified algorithm encompassing several existing variants. Here, we give a complete proof for Algorithm 4 (DWTimesDW2), the variant used in this paper, and obtain a bound consistent with their general bound.
Theorem 5.1. Assume and , and let denote the intermediate double-word product computed by Algorithm 4 (DWTimesDW2) before the final FastTwoSum normalization. Then
Proof. Since and ,
From we get , hence
A later version of this work [33, Theorem 3.4] claims only the more conservative bound for these inputs. With that bound, Theorem 4.8 holds with .
Since and ,
Finally, gives
5.2 Overlap in double-word squaring
We next derive an overlap bound for double-word squaring without final normalization, providing a complete proof for Algorithm 5 using the same approach.
Theorem 5.2. Assume , and let denote the intermediate double-word product computed by Algorithm 5 (DWPow2) before the final FastTwoSum normalization. Then
Proof. Since and ,
Since , hence
Finally,
6 Complex double-word multiplication
6.1 Algorithm
We consider the multiplication of two complex numbers whose real and imaginary parts are represented in double-word arithmetic. Writing these numbers as and , their exact product is
where
are normalized, non-overlapping double-word representations. We focus on the computation of the imaginary part, as the real part can be computed analogously. We compute with Algorithm 8 (DWMulAdd) in three stages, the first two of which are independent and can be performed in parallel.
Algorithm 8: DWMulAdd(A, D, B, C)
Here , and are double-word numbers, and approximates . DWTimesDW and DWPlusDW denote arbitrary double-word multiplication and addition algorithms, respectively. Throughout the remainder of this paper, we use DWTimesDW2 (Algorithm 4) for multiplication and one of the three double-word addition algorithms introduced earlier (Algorithms 1–3) for DW-PlusDW.
We can omit the final normalization step in each double-word multiplication performed by Algorithm 4. Skipping the final FastTwoSum reduces the cost of each multiplication from 8 to 5 floating-point operations. Since this FastTwoSum is error-free, omitting it preserves the sum of the high and low components, and hence the value of the computed double-word product. The relative error bound for the multiplication therefore remains unchanged. The unnormalized product has an overlap bounded by (Theorem 5.1), which is covered by the addition error analysis in Section 4.2. We now derive worst-case error bounds for the resulting variants of complex multiplication.
6.2 Error analysis
As mentioned earlier, we focus on the imaginary part of the complex product, , and the real part, , can be treated analogously. Let and denote the exact products, and let and be their double-word approximations computed using a double-word multiplication algorithm with relative error bounded by .
Similarly
Let be exactly computed. Let be the associated sum computed using a double-word addition algorithm with and as inputs. Let be the relative error associated to the double-word addition algorithm used.
By the triangle inequality, , and
Combining them with Eq. (6.21),
Let be the condition number of the sum , assuming . Dividing by and neglecting the second order term,
This holds only when a relative error bound for the double-word addition, as in Eq. (6.21), is available. Only absolute error bounds are known for Algorithm 1 (SloppyDWPlusDW), whether its inputs are normalized or overlapping, and for Algorithm 2 (AccurateDWPlusDW) when its inputs overlap because normalization has been omitted. The bounds established above take the form
where is referred to as the modified relative error bound in [32]. A relative error bound also yields a modified relative error bound with the same constant, since
Thus, a formulation in terms of covers both types of bounds. We therefore also derive a modified relative error bound for . With and the triangle inequality,
and, dividing by and neglecting the second-order term,
The whole error, not only the part due to the products, is then proportional to . As previously mentioned, a relative error bound is also a modified one, so Eq. (6.23) also holds when a relative error bound is known, however it is less sharp than Eq. (6.22).
The usual argument against Algorithm 1 (SloppyDWPlusDW) is that its relative error is not bounded under cancellation, whereas the relative error of Algorithms 2 (AccurateDWPlusDW) and 3 (Madd) is insensitive to it. Yang et al. [32] observe that this advantage only matters when the operands are exact, which is rarely the case since the inputs of an addition are usually the outputs of previous computations. Building on their reasoning, we quantify the effect of errors in the operands on the accuracy of the computed sum .
The operands and of the double-word addition are computed products and therefore already contain errors bounded in absolute value by and , respectively. Even an exact addition of them, , therefore only guarantees
6.3 Comparison of error bounds and performance
Table 1 summarizes the floating-point operation counts and error bounds for computing the imaginary part of the complex double-word product using the variants considered above. The real part requires the same number of operations, so the counts in the table must be doubled to obtain the cost of the full complex multiplication. All variants use DWTimesDW2 (Algorithm 4) for multiplication and one of Algorithms 1–3 for addition. We consider both normalized and unnormalized multiplication results; the latter are obtained by omitting the final FastTwoSum in Algorithm 4. The error bounds presented in Sections 3 and 4.2 for Algorithms 1–3 all take the form . When the addition has a relative error bound, Eq. (6.22) gives and , so only the errors in the products are amplified by . When only a modified relative error bound is known, Eq. (6.23) gives and .
Table 1: Error bounds and flop counts of the complex multiplication for each double-word addition algorithm, with and without normalization of the products computed by Algorithm 4 (DW-TimesDW2). Each error bound is written as the contribution of the addition plus that of the multiplication.
| addition after Algorithm 4 | error bound | # flops2×mul. + add. |
|---|---|---|
| with normalization | ||
| Algorithm 1 | ||
| Algorithm 2 | ||
| Algorithm 3 | ||
| skipping normalization | ||
| Algorithm 1 | ||
| Algorithm 2 | ||
| Algorithm 3 | ||
As shown in Table 1, omitting normalization in the multiplications produces overlapping inputs to the addition, with an overlap parameter of approximately 3. This overlap moderately increases the error bound, while omitting normalization reduces the floating-point operation count by approximately 22% when using Algorithm 1 (SloppyDWPlusDW) and 17% when using Algorithm 2 (AccurateDWPlusDW) or Algorithm 3 (Madd). Algorithm 1 yields a moderately larger error bound than Algorithms 2 and 3, while reducing the floating-point operation count by 25% with normalization and 30% when normalization is omitted.
7 Complex double-word division algorithm
7.1 Algorithm
We consider the division of two complex numbers and , where and are non-overlapping double-word numbers and . Multiplying the numerator and denominator by the conjugate gives
The quotient is computed in double-word arithmetic in the three stages listed below, namely the evaluation of the numerators and , the computation of the common denominator , and the two double-word divisions. The first two stages are independent and can be performed in parallel.
-
compute the numerators and as in Section 6, each with two calls to Algorithm 4 (DWTimesDW2) and one of the double-word additions presented in Section 3.1,
-
compute the denominator with two calls to Algorithm 5 (DWPow2) and Algorithm 1 (SloppyDWPlusDW),
-
compute and with Algorithm 6 (DWDivDW2) or Algorithm 7 (DWDivDW3).
In step 2, the denominator is a sum of two non-negative terms, so no cancellation can occur and Algorithm 1 is sufficient. In step 3, Algorithm 7 first computes the reciprocal and reuses it for both components. With Algorithm 7, the two divisions therefore require floating-point operations, compared with using Algorithm 6, in exchange for a smaller error bound.
As in complex multiplication, the normalization of the products can be omitted. In this case, the numerators are computed using the procedure described in Section 6 for , with the appropriate changes of operands and signs. For the denominator, omitting the final FastTwoSum in Algorithm 5 (DWPow2) reduces the cost of each square from 7 to 4 floating-point operations. Since this FastTwoSum is error-free, omitting it preserves the sum of the high and low components, so the normalized and unnormalized double-word results represent the same value. The relative error bound [16] therefore remains unchanged. By Theorem 5.2, omitting normalization produces a double-word square with an overlap bounded by . This overlap parameter, approximately equal to 3, falls within the range covered by the addition error analysis in Section 4.2. The sums , and are always normalized by the addition, as required by the division algorithms.
7.2 Error analysis
7.2.1 Errors in the numerator and denominator
We consider one component, , where and are exactly computed. The other component can be analysed in the same way.
Let be the numerator computed as in Section 6, with a relative error bounded by . Then
where is given by Eq. (6.22) or Eq. (6.23), with denoting the condition number of the sum defining the numerator.
Similarly, let be the computed denominator, with a relative error bounded by . Then
The denominator is a sum of the two squares and , computed with a relative error bounded by . Since , its condition number is , and Eq. (6.23) gives
7.2.2 Relative error bound
Let be the associated quotient computed using a double-word division algorithm with and as inputs. Let be the relative error associated to the double-word division algorithm used.
By the triangle inequality,
and, using Eq. (7.27) for the first term,
It remains to bound and with the errors of the numerator and denominator. By Eq. (7.24) and Eq. (7.25),
and, writing
the bounds and and Eq. (7.25) give
Substituting both bounds into Eq. (7.28),
Dividing by and neglecting second-order terms,
In Eq. (7.29), the dependence on the numerator's condition number is entirely contained in . The contributions from the denominator computation and the final division are independent of .
7.2.3 Choice of the additions
The analysis in Section 6.2 supporting the use of Algorithm 1 (SloppyDWPlusDW) to compute also applies to the numerators here. Errors inherited from the products are amplified by the condition number , regardless of the addition algorithm used, and the choice of addition affects only the coefficient of . Algorithm 1 therefore offers a lower floating-point operation count at the cost of a modest increase in this coefficient. For the denominator, , so the relative and modified relative error bounds coincide. Since no cancellation occurs, the cancellation-insensitivity of Algorithms 2 and 3 offers no advantage here. We therefore use Algorithm 1 to compute the denominator throughout, as noted earlier.
7.3 Comparison of error bounds and performance
Table 2 summarizes the floating-point operation counts and error bounds of the complex division for each combination of the addition used in the numerators and the division algorithm. The bounds are given for each component and have the leading-order form , as in Section 6.3, where is the condition number of the corresponding numerator. By Eq. (7.29), is taken from the table of Section 6.3, and only adds to . By Eq. (7.26), with normalization, and, skipping normalization, (Theorem 4.5 with ). For the division, with Algorithm 6 (DWDivDW2) and with Algorithm 7 (DWDivDW3), whose final multiplication is performed by Algorithm 4 (DWTimesDW2). The latter bound requires . The total floating-point operation count is twice the cost of one numerator, plus the costs of the denominator and the two divisions. The denominator requires operations with normalization and without normalization.
Table 2: Error bounds and flop counts of the complex division for each double-word addition algorithm in the numerators and each division algorithm, with and without normalization of the products and squares. Each error bound is written as the contribution of the numerator plus that of the denominator plus that of the division.
| addition in numerators | division | error bound num. + den. + div. | # flops |
|---|---|---|---|
| with normalization | |||
| Algorithm 1 | Algorithm 6 | ||
| Algorithm 7 | |||
| Algorithm 2 | Algorithm 6 | ||
| Algorithm 7 | |||
| Algorithm 3 | Algorithm 6 | ||
| Algorithm 7 | |||
| skipping normalization | |||
| Algorithm 1 | Algorithm 6 | ||
| Algorithm 7 | |||
| Algorithm 2 | Algorithm 6 | ||
| Algorithm 7 | |||
| Algorithm 3 | Algorithm 6 | ||
| Algorithm 7 | |||
As in the multiplication, omitting normalization of the products and squares reduces the floating-point operation count by approximately 16% when using Algorithm 1 in the numerators and 14% when using Algorithm 2 or Algorithm 3, while moderately increasing the error bound. Algorithm 1 in the numerators yields a larger coefficient of than Algorithms 2 and 3, while reducing the floating-point operation count by 14% with normalization and 16% when normalization is omitted. Algorithm 7 requires only two more operations than Algorithm 6 and lowers the constant term of the error bound by in every variant.
8 Numerical experiments
8.1 Implementation of a complex double-word library
We have implemented the algorithms discussed above in , a publicly available header-only C++20 library that supports efficient execution on CPUs using scalar and SIMD operations, as well as on GPUs through CUDA or HIP. The library provides a real double-word type (DW) and a complex double-word type (XDW), both with overloaded arithmetic operators. Mixed-type operations and conversions from and to the native types are also supported. Both types are parameterized by , which can be either a scalar floating-point type or a SIMD vector type. In the SIMD case, each pair of corresponding lanes in the high and low vectors represents a separate double-word number. On CPUs with SIMD support, we recommend using SIMD vector types as , and we evaluate this approach in the performance benchmarks.
For both types, addition and subtraction use Algorithm 3 (Madd). For the double-word type, multiplication and division use Algorithm 4 (DWTimesDW2) and Algorithm 6 (DWDivDW2), respectively. For the complex double-word type, all variants of multiplication and division analysed in Sections 6 and 7 are available. The user selects the addition algorithm, the normalization and the division algorithm at compile time. The choice can be made globally or for individual calls, and it incurs no run-time overhead.
The error-free transformations require round-to-nearest arithmetic. The compiler must not reassociate operations, use excess intermediate precision or fuse multiplications and additions into FMAs. The library rejects compiler settings that violate these assumptions whenever they can be detected. By default, products are computed with TwoProdFMA. On the host, Dekker's TwoProd can be selected instead. The arithmetic operations can be checked by unit tests against reference results computed using the GNU MPFR library [9]. The build requirements, the configuration options and the interface are described in the user guide in the repository.
To evaluate the library, we designed two sets of numerical experiments, which assess its accuracy (Section 8.2) and its performance (Section 8.3), respectively, and we evaluate both in a high-energy physics simulation (Section 8.4). We name the modes of the complex multiplication and division after the algorithms they use, and sometimes abbreviate them. Sloppy (S), Accurate (A) and Madd (M) denote the addition with Algorithm 1 (SloppyDWPlusDW), Algorithm 2 (AccurateDWPlusDW) and Algorithm 3 (Madd), respectively. Normalized (N) and Unnormalized (U) denote whether the products are normalized. Div2 and Div3 denote the division with Algorithm 6 (DW-DivDW2) and Algorithm 7 (DWDivDW3), respectively.
The CPU experiments were run on a performance core of an Apple M4 Pro, with 128-bit NEON vector units. The code was compiled with Apple clang 17 (clang-1700.6.4.2) and -std=c++20 -O2 -ffp-contract=off -march=native. The GPU experiments were run on an NVIDIA L40S and an AMD Radeon Pro W7900, whose peak FP64 throughput is 1/64 [25] and 1/32 [1] of their FP32 throughput, respectively. These cards represent the probable coming generation of GPUs, in
²https://github.com/stloufra/CompleXDW, under the MIT license.
which the FP64 hardware is reduced in favour of lower-precision formats. For the L40S, the code was compiled using nvcc from CUDA 13.1, with g++ 11.5 as the host compiler. For the W7900, it was compiled using hipcc from ROCm 7.2.4.
8.2 Accuracy experiments
We assess the accuracy of all implemented modes of the complex multiplication and division in two experiments. The first one prescribes the condition number of the inputs (Section 8.2.1), and the second one searches for the worst-case inputs (Section 8.2.2).
8.2.1 Conditioning
In this experiment, we prescribe the condition number of the inputs, drawn log-uniformly in , and generate the inputs with the algorithm described in Appendix A. The inputs are then rounded to the nearest double-word numbers with BaseType=double. Since rounding changes , it is recomputed from the double-word inputs, and the errors are measured against a reference result computed from these inputs using MPFR with a significand precision of 1024 bits. For the multiplication, is the condition number of the sum in the imaginary part of the product, and for the division, of the sum in the imaginary part of the numerator. Considering the conditioning of just one component suffices, since the real and imaginary components of a complex product cannot both be ill-conditioned. The identity
shows that cancellation cannot make both components small simultaneously relative to the magnitudes of the inputs. Indeed, by the Cauchy–Schwarz inequality, the numerator of each component's condition number is bounded by . If one component has condition number , its magnitude is therefore at most . The identity then implies that the other component has magnitude at least , so its condition number is at most . For the condition numbers used in this experiment, the same reasoning bounds the condition number of the other component by . The same argument applies to the numerator of the division, since . We measure the error of a complex result as the maximum of the relative errors in its real and imaginary parts. Both reference components are nonzero. The algorithm of Appendix A rejects draws in which an input or the conditioned sum is zero. If rounding the inputs to double-word numbers makes the conditioned sum vanish, its recomputed condition number is infinite and the sample is discarded. The other component cannot vanish, since by the argument above its magnitude is at least . For , we used samples for both multiplication and division, corresponding to approximately samples per decade of . We report the maximum and mean errors in each decade.
Figure 1 presents the relative error for Sloppy/Unnormalized, the mode with the largest errors. It is the variant of Sections 6 and 7 that uses Algorithm 1 (SloppyDWPlusDW) and skips normalization, with Algorithm 6 (DWDivDW2) for the division. Both panels show the maximum and the mean error in each decade of .
Figure 1 shows that the relative error grows linearly with for the mode with the largest errors. We conducted the same experiments and generated analogous plots for all other modes. The resulting curves are visually indistinguishable at the logarithmic scale used in the figure. This is consistent
Complex multiplication, Sloppy, Unnormalized
Complex division, Div2, Sloppy, Unnormalized


Figure 1: Relative error versus the condition number for complex multiplication (left) and complex division (right) for the mode with the largest errors.

Figure 2: Relative error of complex multiplication, normalized by , versus the condition number for each addition algorithm, with (N) and without (U) normalization. Maximum and mean values are reported for each decade of .
with the error bounds in Tables 1 and 2, which remain of the same order of magnitude across modes. For example, for division at large , the leading terms of the bounds range from to , differing by a factor of only 2.4. We therefore plot the error divided by , which can be compared with the coefficient introduced in Section 6.3 for complex multiplication and Section 7.3 for complex division. The results are presented in Figures 2 and 3.
Dividing the error bound by gives . Since in this experiment, the term is small, and the normalized error mainly reflects the errors amplified by . These come from rounding the two products and, for Algorithm 1 (SloppyDWPlusDW), also from the addition. Rounding the products is the same in all modes, since omitting normalization does not change the value of the products. All modes therefore reach about the same maximum normalized error, 3.31 for multiplication and 3.70 for division, with a mean of about 0.25. The exception is Sloppy/Unnormalized, which reaches 4.53 and 4.82, with a mean of 0.30. It is the only mode whose amplified addition error is large enough to be visible. Without normalization, the products have

Figure 3: Relative error of complex division, normalized by , versus the condition number for each combination of division and addition algorithm, with (N) and without (U) normalization. Maximum and mean values are reported for each decade of .
an overlap of , and for such inputs the error bound of Algorithm 1 is (Theorem 4.5), the largest of the three additions. All measured values stay below the coefficients of the corresponding modes in Tables 1 and 2. Condition numbers close to 1, where is no longer small, are covered by the worst-case search of Section 8.2.2.
8.2.2 Worst case
The experiment of Section 8.2.1 samples only , where the errors amplified by dominate and all modes behave alike. Divided by , the bounds of Sections 6.3 and 7.3 become , which is largest at , where it equals . The term comes from the addition and, for the division, also from the denominator and the division step. In this experiment, we search directly for inputs that maximize the relative error divided by over all . Each result component is scaled using its corresponding condition number , and the larger of the two scaled errors is retained. The search combines random sampling, inputs placed at the rounding boundaries of the error-free transformations, and hill climbing from the worst inputs found so far, and is described in Appendix B. With BaseType=double, we evaluated at least candidates for both multiplication and division, each on all modes. Table 3 compares the largest scaled error found for each mode with the theoretical upper bound , the bound of Tables 1 and 2 at . The scaled error is the relative error divided by .
All worst cases lie below their bounds, and all were found at . For the multiplication, the worst cases reach between 80% and 97% of the bounds. Skipping the normalization leaves the worst-case error of Algorithm 3 (Madd) unchanged at 6.41, and increases those of Algorithm 2 (AccurateDW-
Table 3: Largest scaled error found by the worst-case search for each mode, and the bound of Tables 1 and 2 at , for BaseType=double.
| operation | addition | Normalized | Unnormalized | ||
|---|---|---|---|---|---|
| worst | bound | worst | bound | ||
| multiplication | Madd | 6.41 | 7 | 6.41 | 8 |
| Accurate | 6.85 | 8 | 8.85 | 10 | |
| Sloppy | 7.77 | 8 | 10.78 | 12 | |
| division, Div2 | Madd | 14.80 | 28 | 15.97 | 33 |
| Accurate | 14.90 | 29 | 16.85 | 35 | |
| Sloppy | 14.90 | 29 | 18.16 | 37 | |
| division, Div3 | Madd | 13.64 | 22.8 | 15.41 | 27.8 |
| Accurate | 13.68 | 23.8 | 16.28 | 29.8 | |
| Sloppy | 13.68 | 23.8 | 17.59 | 31.8 | |
PlusDW) and Algorithm 1 (SloppyDWPlusDW), in line with their larger bounds for overlapping inputs. For the division, the worst cases reach between 48% and 60% of the bounds. The error bounds for division combine the contributions from the numerator, the denominator, and the final division step. Our experiments suggest that these contributions may not attain their respective bounds simultaneously. Furthermore, the numerical experiments reported in [24] suggest that the error bound for division may not be optimal.
8.3 Performance experiments
In these experiments, we measure the execution time per array entry for complex multiplication, , and division, , using arrays of XDW numbers. All modes are tested with both BaseType=double and BaseType=float. We compare three cases. The first uses a scalar build, with autovectorization disabled through the compiler flags -fno-tree-vectorize and -fno-tree-slp-vectorize. The other two use SIMD builds: one with arrays of XDW<T>, which the compiler may autovectorize, and the other with arrays of XDW whose base type is a SIMD vector matching the native register width. We use two baselines. The first is std::complex, whose arithmetic operators handle infinities and NaNs and whose division operator rescales the operands. These additional treatments prevent autovectorization in our test environment. The second is a naive implementation of the textbook formulas, without special-case handling or rescaling. Both baselines operate only on the high words of the inputs.
The inputs are random double-word numbers with random signs and base-2 exponents uniformly distributed over [-20, 20]. In FP32, the operands, the products and their error terms then lie far from the subnormal range and from overflow. The inputs are generated with a fixed seed, and for these inputs we checked for all variants, in FP32 and FP64, that no floating-point instruction produced an underflow or a subnormal result or received a subnormal operand. The arrays have length , so the three arrays of XDW<double> occupy 96 KB and fit within the 128 KB L1 data cache. This limits the impact of memory bandwidth on the measured performance.
For each variant, we first determine the number of kernel repetitions by repeatedly doubling this number until the total execution time reaches at least 1 ms. This calibration phase also serves as a warm-up. We then collect 31 timing samples for each variant, rotating the order of the variants
Complex multiplication, FP64 base type, n = 1024
Complex division, FP64 base type, n = 1024


Figure 4: Time per element of the complex multiplication (left) and division (right) for all modes, BaseType=double. Bars indicate mean execution times, given above each bar, whiskers represent one standard deviation, and grey ticks mark the times predicted from the flop counts listed below each mode label. For the naive baseline, the third bar uses the SIMD vector type instead of XDW.
between sampling rounds to distribute the effects of frequency and temperature drift more evenly across them. We report the mean and standard deviation of the time per element after excluding samples outside the Tukey fences, namely those more than 1.5 times the interquartile range below the first quartile or above the third quartile. To relate the measured timings to the flop counts reported in Sections 6.3 and 7.3, we also provide predicted timings based on these counts. For each series, we use the Madd/Normalized variant as a reference for both multiplication and division, with Algorithm 6 for division. The predicted time for each variant is the measured time of the reference variant multiplied by the ratio of its flop count to that of the reference variant.
Figures 4 and 5 report the execution time per element for all modes and both baselines, using BaseType=double and BaseType=float, respectively. For each mode, the three bars correspond to the scalar build, the SIMD build with arrays of XDW<T>, and the SIMD build with a SIMD vector base type. The timings follow the flop counts closely. For example, using a SIMD vector base type with FP64 lanes, multiplication takes 1.49 ns in Sloppy/Unnormalized mode and 2.50 ns in Madd/Normalized mode, giving a timing ratio of 0.60, compared with a flop ratio of 42/72 ≈ 0.58. Division using Algorithm 6 (DWDivDW2) takes 3.72 ns and 5.28 ns in the same respective modes, giving a timing ratio of 0.70, compared with a flop ratio of 97/133 ≈ 0.73. As expected, Algorithms 2 (AccurateDWPlusDW) and 3 (Madd), which have the same flop count, take approximately the same time. Algorithms 6 and 7 have execution times that differ by at most 10%, as the two additional flops of Algorithm 7 are compensated by its single floating-point division, against four for Algorithm 6.
Compared with the scalar build, using a SIMD vector base type provides speedups of for multiplication and for division with FP64 lanes, and and , respectively, with FP32 lanes. These speedups are close to the respective lane counts of two and four. Autovectorization
Complex multiplication, FP32 base type,

Complex division, FP32 base type,

Figure 5: Time per element of the complex multiplication (left) and division (right) for all modes, BaseType=float, as in Figure 4.
of arrays of XDW<T> yields smaller speedups: for multiplication and for division with BaseType=double, and and , respectively, with BaseType=float. Since the SIMD vector base type uses explicit vectorization, its performance changes by at most 2% when compiler autovectorization is disabled.
On this CPU, FP64 arithmetic runs at full speed. The textbook implementation of complex multiplication takes 0.34 ns in FP64 with a SIMD vector type, compared with 0.75 ns for the fastest double-word mode with BaseType=float and 1.49 ns with BaseType=double. Using double-word arithmetic with BaseType=float as an alternative to FP64 therefore offers no performance advantage on this CPU, unlike on the GPUs discussed in the next subsection, which have lower FP64 throughput. However, division with std::complex<double> takes 7.45 ns, making it slower than all vectorized double-word division modes with BaseType=double (3.72–5.32 ns). Its special-case handling and operand rescaling prevent autovectorization in our test environment.
8.4 Complex double-word operations in a high-energy physics simulation
To evaluate the performance of the CompleXDW library in a high-energy physics simulation, we use MadGraph7, the upcoming version of the Monte Carlo event generator MadGraph5_aMC@NLO [2], currently in public alpha release, as a non-synthetic benchmark. MadGraph7 computes cross sections and generates events for arbitrary scattering processes within and beyond the Standard Model. Event generation is a major consumer of the computing resources of the experiments at the Large Hadron Collider. After the high-luminosity upgrade of the collider, it is projected to use up to 20% of the CPU resources of one of its two general-purpose experiments [3], and the other plans a five- to tenfold increase in the number of generated events [7, 4]. For a given process, it generates the code of the scattering amplitudes from the Feynman diagrams, and the squared matrix element (ME) of each phase-space point is obtained by summing over the helicities and colours. The evaluation of the MEs, which consists mostly of complex arithmetic on the helicity amplitudes, dominates the cost of the event generation for complex processes, and it has been ported to vector CPUs and GPUs [12, 30]. With its standalone output, MadGraph7 evaluates the MEs of a batch of events in one call in a fully parallel way. The helicity amplitudes are computed using XDW<float> for complex arithmetic and DW<float> for real arithmetic, whereas the final summation over colours, a quadratic form with the real-valued colour coefficient matrix, uses FP64 arithmetic in all builds. We consider the Drell-Yan process and the top-quark pair production , each with up to two additional gluons. Drell-Yan production is a standard candle at the Large Hadron Collider, and the production of vector bosons and top-quark pairs with jets is among the most simulated processes there, consuming a substantial fraction of the CPU budget of the experiments [6, 14]. The processes are also the reference benchmarks of the GPU implementation [12]. Each additional gluon multiplies the number of Feynman diagrams, so the six processes range from cheap to expensive MEs.
All builds, including the FP64 baseline, disable fast-math optimizations. They also disable automatic FMA contraction, with -fmad=false for CUDA and -ffp-contract=off for HIP. The optimization levels are the MadGraph7 defaults: -02 for HIP, and for CUDA the default device optimization of nvcc with -03 for the host code. With fast-math optimizations and floating-point contraction disabled, changing the optimization level preserves the floating-point operations and therefore does not affect numerical accuracy. For each process, we compare three builds, FP64, used as the reference, and two double-word builds. The first double-word build uses the default configuration, Madd, Normalized and Algorithm 7 (DWDivDW3), which combines the most accurate algorithms and is denoted “Double Word (M, N, Div3)”. The second uses Sloppy, Unnormalized and Algorithm 6 (DWDivDW2), which combines the least accurate algorithms and is denoted “Double Word (S, U, Div2)”. In the main runs, the helicity-amplitude routines are force-inlined into the ME kernel in all builds, which lets the compiler optimize across the calls. With double-word arithmetic, however, every complex operation expands into multiple floating-point operations, so the inlined kernel of a process with many Feynman diagrams becomes very large. For the largest process, , we therefore also benchmark all builds with function inlining disabled, so that the routines are called as separate functions.
All processes and builds use the same launch configuration of 2048 blocks of 256 threads, which is the largest for which fits in the memory of the GPUs. Each launch evaluates the MEs of events in three iterations, with momenta generated by uniform phase-space sampling at a centre-of-mass energy TeV, and the throughput of the launch is the number of events divided by the time of its fastest iteration. We use the fastest iteration because the first one also selects the contributing helicities and is therefore slightly slower. The measured time includes only the calls to the ME computation routine. The time spent transferring the MEs to the host and the phase-space point to the GPU is excluded from the measurements. Each build is launched 15 times, each time in a fresh process, so that any drift of the GPU affects all builds alike. Of the 15 launches, we keep the 10 closest to the median, and report the mean and standard deviation of their throughput, and the speedup of the means with respect to FP64.
To assess numerical accuracy, we evaluate 1 048 576 events per process on the L40S, using identical momenta across all builds. We compare the resulting MEs with reference values computed on the CPU using DW<double>. For each event, we determine the number of correct significant digits as , where and denote the computed and reference MEs, respectively.
Figure 6 presents the correct significant digits of the MEs. Figure 7 presents the ME throughput

Figure 6: Correct significant digits of the MEs of the six processes on the NVIDIA L40S, mean over 1 048 576 events and worst event, for the FP64 and the two double-word builds.
of all six processes with the helicity-amplitude routines inlined, and Figure 8 that of without inlining.
Figure 6 indicates that the two double-word builds retain on average 13.6 to 14.4 correct significant digits, compared with 15.0 to 15.7 for FP64, that is, 1.3 to 1.5 fewer digits depending on the process. For each process, the two double-word builds differ by at most 0.2 correct significant digits on average. For the worst event of each process, FP64 retains 8.4 to 14.8 correct significant digits, with the lower values reflecting the ill-conditioning of some MEs, and the double-word builds retain 1.0 to 1.9 fewer digits.
With inlining enabled (Figure 7), “Double Word (S, U, Div2)” achieves throughput ratios relative to FP64 of 1.9 to 2.9 on the L40S and 1.2 to 2.1 on the W7900, across all processes except . For the same processes, “Double Word (M, N, Div3)” achieves ratios of 1.6 to 2.4 and 0.97 to 1.8, respectively. The larger gains on the L40S are consistent with its lower ratio of FP64 to FP32 throughput. For , the inlined double-word builds are slower than FP64 on the L40S, with ratios of 0.68 and 0.54, and on the W7900 only “Double Word (S, U, Div2)” is slightly faster, with a ratio of 1.04. This process has by far the most Feynman diagrams, so its inlined double-word kernel is the largest, and we attribute the slowdown on the L40S to register pressure, which the experiment without inlining supports.
Disabling inlining for (Figure 8) changes the throughput of every build on the W7900, and of FP64 on the L40S, by less than 1.5%. On the L40S, however, the double-word builds become 1.6 to 1.7 times faster. “Double Word (S, U, Div2)” then achieves throughput ratios relative to FP64 of 1.07 on the L40S and 1.05 on the W7900, while “Double Word (M, N, Div3)” achieves
NVIDIA L40S
AMD Radeon Pro W7900


Figure 7: ME throughput of the six processes with force-inlined helicity-amplitude routines on the NVIDIA L40S (left) and the AMD Radeon Pro W7900 (right), with the speedup with respect to FP64 above each bar.
NVIDIA L40S, HELINL=0

AMD Radeon Pro W7900, HELINL=0

Figure 8: ME throughput of without inlining of the helicity-amplitude routines on the NVIDIA L40S (left) and the AMD Radeon Pro W7900 (right), with the speedup with respect to FP64 above each bar.
ratios of 0.92 and 0.89, respectively.
9 Related work
9.1 Complex floating-point arithmetic
For floating-point complex numbers, the classical formula for the product has a normwise relative error of at most [5], and an FMA-based variant reduces it to [18]. The real and imaginary parts may nevertheless suffer from cancellation, so their componentwise relative error is not bounded. Graillat and Mémissier-Morain [10] extend the error-free transformations to complex numbers, representing a complex product exactly as a sum of four complex floating-point numbers, and derive compensated algorithms for complex sums, dot products and polynomial evaluation. These compensated algorithms return their results in the working precision, nearly as accurate as if they had been computed in twice the working precision and then rounded. In contrast, we represent the complex inputs and results themselves as double-word numbers, so that the extended precision is kept across successive operations.
9.2 Double-word arithmetic without normalization
Lange and Rump [21] introduce pair arithmetic, a simplified variant of double-word arithmetic for the basic operations and the square root that omits the normalization altogether. For a class of arithmetic expressions, essentially those in which no cancellation occurs on computed data, they prove that the result is faithfully rounded for up to operations, which is about operations in FP64 but fewer than 3000 in FP32. This class covers Horner's scheme, products, sums, dot products and the Euclidean norm. Yang et al. [32] note that pair arithmetic is faster than double-word arithmetic but has a larger error bound. For a double-word multiplication followed by an addition, which they call MAA (multiplication and addition), they instead omit only the normalization of the product. The error bound then remains close to that of the fully normalized algorithms. We follow this approach and keep the normalization of the additions, which allows us to bound the overlap and keep error bounds of order for every mode of the complex multiplication and division. Mukunoki and Ozaki [23] study quasi double- and triple-word algorithms in conjugate gradient solvers for sparse systems on a CPU. Their quasi double-word arithmetic is the pair arithmetic of Lange and Rump, and their quasi triple-word arithmetic likewise omits the normalization, so that the words may overlap, which trades some accuracy for speed. They find that a normalization must still be performed periodically for the solver to converge, and that quasi triple-word arithmetic is a good alternative to double-word arithmetic in this setting.
9.3 Double-word arithmetic using fused operators
Hubrecht et al. [15] assume the availability of correctly rounded fused operators for (FD2, sometimes called FDP) and (FD2A, sometimes called FDPA). Two FD2 operations give correctly rounded real and imaginary parts of a complex product, and three FD2 operations and two divisions give both parts of a complex quotient with a relative error of at most . With FD2A, the error-free transformation of an addition, TwoSum_Add3 [26], takes only two operations, which leads to cheaper and often more accurate double-word algorithms, e.g., a double-word addition with a relative error bound of in 11 operations, against 20 for Algorithm 2 (AccurateDWPlusDW).
Dedicated fused dot-product units have been designed [31], but the dot-product instructions of current processors mainly target low-precision inputs accumulated in a wider format [15], so these algorithms cannot yet be used on the hardware we target.
10 Conclusion
In this paper, we have presented double-word arithmetic for complex numbers, together with its open-source implementation ComplexXDW. Complex multiplication and division are built from sums of two products of double-word numbers. To compute these sums, we combine FMA-based double-word multiplication with Algorithm 1 (SloppyDWPlusDW), Algorithm 2 (AccurateDWPlusDW), or the recently introduced Algorithm 3 (Madd) [35]. Among these approaches, Madd has the smallest relative error bound, , while requiring the same number of operations as AccurateDWPlusDW. To improve performance, we omit the final normalization call in both double-word multiplication and squaring. We show that the resulting unnormalized products and squares have an overlap bounded by , and establish error bounds for additions with overlapping inputs. In particular, we show that both renormalizations performed by FastTwoSum in Algorithm 3 (Madd) remain error-free under round-to-nearest rounding, under a mild assumption on the input overlap. Its absolute error bound has the leading term , which is independent of the overlap, unlike the corresponding bounds for Algorithm 1 (SloppyDWPlusDW) and Algorithm 2 (AccurateDWPlusDW). Using these results, we establish error bounds of the form for complex multiplication and division across all combinations of the double-word addition and multiplication algorithms considered. Here, is the condition number of the sum of two products involved in complex multiplication, or in the numerator of complex division. We also argue that the less expensive SloppyDWPlusDW addition is a reasonable choice in this setting, since the contribution of product errors already grows with , regardless of the addition algorithm used. The experimental results are consistent with the theoretical error bounds. A randomized worst-case search yields errors close to these bounds for complex multiplication and approximately half the bounds for complex division. On GPUs with reduced FP64 throughput, replacing FP64 arithmetic with FP32-based double-word arithmetic in the matrix-element computations of MadGraph7 increases the event processing rate. The speedup reaches on the NVIDIA L40S and on the AMD Radeon Pro W7900. Both double-word builds lose on average between 1.3 and 1.5 correct significant digits relative to FP64, depending on the process. For each process, the two builds differ by at most 0.2 correct significant digits on average. Several directions remain for future work. First, tighter error bounds could be derived for double-word division, and hence for the complex double-word division that relies on it. Second, the approach could be extended to floating-point expansions with more than two words. Finally, the double-word types could be integrated into production scientific software that requires precision beyond FP64. An example is event generation in high-energy physics at next-to-leading order in perturbation theory, where numerically unstable loop amplitudes are re-evaluated at higher precision.
Acknowledgement: The work done by František Stloukal was supported by the Eric & Wendy Schmidt Fund for Strategic Innovation through the CERN Next Generation Triggers project (grant agreement SIF- 2023-004). The work of Fabienne Jézéquel was supported by the NumPEx Exa-MA (ANR-22-EXNU-0002) and the FPT-4 (ANR-24-CE46-7572) projects of the French National Agency for Research (ANR).
Declaration of AI use: Perplexity (Perplexity AI) and ChatGPT (OpenAI) were used for language editing of this manuscript. Claude Opus 5.5 (Anthropic) was used to assist with parts of the software implementation. The authors reviewed and verified all AI-assisted output and take full responsibility for the content of this publication. All scientific content, methodology, results, and interpretations remain solely the authors' work.
Appendix A Generation of inputs with a prescribed condition number
The error bounds of Sections 6 and 7 grow linearly with the condition number of the sums in the result. To verify this dependence, the experiment of Section 8.2.1 requires inputs whose condition number is prescribed. Inputs drawn at random rarely produce large condition numbers, since this requires an almost exact cancellation in the sum. We therefore construct the inputs directly. Three of the four real inputs are drawn at random, and the fourth is chosen so that the sum attains the prescribed . The inputs are generated in high precision and only then rounded to double-word numbers.
The algorithm presented here follows the usual complex number multiplication structure, where we take the imaginary component of the result as our candidate for the computation of the condition number. In other words,
and then we define the condition number for the imaginary part of the product as , where and , which finally yields
Equivalently,
Since and depend on the sign of and , we split into four cases:
Case 1: , , :
Case 2: , , :
Case 3: :
Case 4: :
Cases 1 and 4 require . When , the equation reduces to , satisfied whenever p and q have the same sign.
For the sake of more concise notation, we substitute , , and in Algorithm 9.
Input: Condition number , an FP64 floating-point number Output: Valid a, b, c, d satisfying and repeat Initialize a, b, c, d as MPFR numbers; a, d, c ← random MPFR numbers ; i ← random integer in ; ; switch i do case 0 do ; // Case 1: , end case 1 do ; // Case 2: , end case 2 do ; // Case 3: , end case 3 do ; // Case 4: , end end if sign assumptions for case i hold for q and then ; return a, b, c, d; end until valid b found;
Algorithm 9: Generate random numbers with given
We computed the reference results using the GNU MPFR library [9] for arbitrary-precision floating-point arithmetic, with a significand precision of 1024 bits for all inputs and operations. With rounding to nearest, the corresponding unit roundoff is . The condition numbers considered in our experiments are well below , so that . Rounding errors in the reference computations are therefore expected to have a negligible impact on the reported results. Afterwards, the MPFR numbers and are converted to the nearest double-word numbers, and the condition number of is re-evaluated using these rounded inputs. This is particularly important when and nearly cancel, since small rounding errors in the inputs can then substantially change their sum and, consequently, its condition number.
Appendix B Worst-case search
The worst-case search looks for inputs and , with double-word components , for which double-word complex multiplication or division maximizes the score
where is a component of the exact result, is the corresponding computed component, and the condition number of the sum involved in computing that component for complex multiplication, or of the sum in its numerator for complex division. Any way of constructing valid double-word inputs can be used, and the only goal of the algorithm is to find larger errors than random sampling does in the same number of trials.
In the used algorithm, a component is skipped if its sum is exactly zero, or if , where is the smallest positive normal floating-point number. The low word of the result and the error terms of the algorithms are of the order of and , with , so this threshold keeps them at least times larger than the smallest normal number. Every candidate is evaluated on all modes of the operation. The exact result is computed with MPFR with 512 significand bits. Each double-word component of the inputs has a low word at most binades below its high word (see the normalization below), so its exact value has at most 200 significant bits. The products and squares of two components then have at most 400 significant bits. Since the real and imaginary parts of an operand differ by at most 40 binades, the sums of two products and the denominator of the division also fit in 512 bits. All these quantities are therefore computed exactly, and only the final quotient of the division is rounded, with a relative error of at most . The worst cases found are recomputed with 4096 bits.
Candidates. Each candidate is drawn from one of the following three sources, with probabilities 0.3, 0.2 and 0.5, respectively. These probabilities were chosen empirically, with most of the candidates coming from the mutations, which refine the worst inputs found so far. The sources are:
-
Random
-
Structured
-
Mutation
Random Each of the four double-word components is drawn independently. Its high word is uniformly distributed in , and its low word is uniformly distributed in , so that the pair is normalized. Both words then get the same random sign and are scaled by , with uniformly distributed in .
Structured Random words rarely hit the cases where the error-free transformations and the roundings of the algorithms are at their limits. The relative rounding error is largest for significands just above a power of two, a carry into the next binade occurs for significands just below two, and a low word close to half an ulp of its high word is the largest one allowed in a normalized pair. Each double-word component is therefore, with probability 1/2, built from such values, and otherwise generated as a random candidate. Its high word is chosen with equal probability among
• 1,
• with , within 16 ulps above 1,
• with , within 16 ulps below 2,
• a value uniformly distributed in [1,2).
Its low word is chosen with equal probability among
• 0,
• with , within 16 ulps below half an ulp of ,
- with , a power of two that separates the two words by further binades,
• a value uniformly distributed in ,
and it gets a random sign. Both words are then scaled as for the random candidates.
Mutation For each mode, the 32 worst distinct inputs found so far are kept. A mutation takes one of them from a randomly chosen mode, the one at position in the list ordered from the worst, where is the length of the list and is uniformly distributed in , so that the worst inputs are chosen most often. It then applies one to three of the following changes, each to a randomly chosen double-word component, in order to explore the neighbourhood of the worst inputs.
• step its high or low word by up to ulps,
- set its low word next to half an ulp of its high word, with ,
• redraw the last bits of its high word,
• redraw it as a random candidate.
• flip its sign.
• apply the cancellation below.
Cancellation Random and structured candidates are, with probability 1/2, further made to nearly cancel in one component, the real or the imaginary one at random. One double-word component is replaced by the value for which the two terms and of the sum satisfy , with uniformly distributed in . The condition number of that component is then . The replaced component is computed with MPFR and rounded to a double-word number, which perturbs slightly, so the condition number is only approximately prescribed. Half of the time, is uniformly distributed in , where the modes differ the most, and otherwise in .
Normalization and scaling. Each double-word component of a new candidate is renormalized with TwoSum, which does not change its value. The candidate is rejected if a word is zero or not finite, if a low word lies more than binades below its high word, so that MPFR stays exact, or if the real and imaginary parts of an operand differ by more than 40 binades. Each operand is then scaled by a power of two so that its largest word has exponent 0. In the absence of underflow, the relative errors do not depend on this scaling.
Bookkeeping. Each evaluated candidate updates, for every mode, the largest score found and the list of the 32 worst inputs from which the mutations start. The search runs on several threads, and its state is checkpointed periodically.
References
[1] Advanced Micro Devices. AMD Radeon PRO W7900 Datasheet. 2023. URL: https://www.amd.com/en/products/graphics/workstations/radeon-pro/w7900.html.
[2] J. Alwall et al. “The automated computation of tree-level and next-to-leading order differential cross sections, and their matching to parton shower simulations”. In: Journal of High Energy Physics 2014.7 (2014), p. 079. DOI: 10.1007/JHEP07(2014)079.
[3] ATLAS Collaboration. ATLAS Software and Computing HL-LHC Roadmap. Tech. rep. CERN-LHCC-2022-005. CERN, 2022.
[4] Enrico Bothmann, Jon Butterworth, Shu Chen, et al. Open LHC Monte Carlo Event Generation. 2026. arXiv: 2605.12229.
[5] Richard Brent, Colin Percival, and Paul Zimmermann. “Error bounds on complex floating-point multiplication”. In: Mathematics of Computation 76.259 (2007), pp. 1469–1481. DOI: 10.1090/S0025-5718-07-01931-X.
[6] Andy Buckley. “Computational challenges for MC event generation”. In: Journal of Physics: Conference Series 1525 (2020), p. 012023. DOI: 10.1088/1742-6596/1525/1/012023. arXiv: 1908.00167.
[7] CMS Collaboration. CMS Offline Software and Computing for HL-LHC Conceptual Design Report. Tech. rep. CERN-LHCC-2026-003. CERN, 2026.
[8] T. J. Dekker. “A Floating-Point Technique for Extending the Available Precision”. In: Numerische Mathematik 18.3 (1971), pp. 224–242. DOI: 10.1007/BF01397083.
[9] Laurent Fousse et al. "MPFR: A Multiple-Precision Binary Floating-Point Library with Correct Rounding". In: ACM Transactions on Mathematical Software 33.2 (2007), p. 13. DOI: 10.1145/1236463.1236468.
[10] Stef Graillat and Valérie Mémissier-Morain. "Accurate summation, dot product and polynomial evaluation in complex floating point arithmetic". In: Information and Computation 216 (2012), pp. 57-71. DOI: 10.1016/j.ic.2011.09.003.
[11] Stef Graillat et al. "Efficient Calculations of Faithfully Rounded L2-Norms of n-Vectors". In: ACM Transactions on Mathematical Software 41.4 (2015), p. 24. DOI: 10.1145/2699469.
[12] Stephan Hageböck et al. Data-parallel leading-order event generation in MadGraph5_aMC@NLO. July 2025. arXiv: 2507.21039 [hep-ph].
[13] Yozo Hida, Xiaoye S. Li, and David H. Bailey. "Algorithms for Quad-Double Precision Floating Point Arithmetic". In: Proceedings 15th IEEE Symposium on Computer Arithmetic (ARITH-15). 2001, pp. 155-162. DOI: 10.1109/ARITH.2001.930115.
[14] HSF Physics Event Generator WG et al. "Challenges in Monte Carlo Event Generator Software for High-Luminosity LHC". In: Computing and Software for Big Science 5 (2021), p. 12. DOI: 10.1007/s41781-021-00055-1. arXiv: 2004.13687.
[15] Tom Hubrecht, Claude-Pierre Jeannerod, and Jean-Michel Muller. "Useful Applications of Correctly-Rounded Operators of the Form ". In: 2024 IEEE 31st Symposium on Computer Arithmetic (ARITH 2024). Slides: https://hubrecht.ovh/_uploads/pdf/2024-11-RAIM.pdf. Málaga, Spain, June 2024. URL: https://hal.science/hal-04461089v2.
[16] Tom Hubrecht and Guillaume Melquiond. “Verifying Code That Uses Error-Free Transformations”. In: Proceedings of the 33rd IEEE Symposium on Computer Arithmetic (ARITH 2026). Fulda, Germany, 2026. URL: https://www.arith2026.org/papers/Verifying%20Code%20That%20Uses%20Error-Free%20Transformations.pdf.
[17] IEEE Computer Society. IEEE Standard for Floating-Point Arithmetic. Tech. rep. IEEE Std 754-2019. July 2019, pp. 1–84. DOI: 10.1109/IEEESTD.2019.8766229.
[18] Claude-Pierre Jeannerod et al. “Error bounds on complex floating-point multiplication with an FMA”. In: Mathematics of Computation 86.304 (2017), pp. 881–898. DOI: 10.1090/mcom/3123.
[19] Mioara Joldes, Jean-Michel Muller, and Valentina Popescu. “Tight and Rigorous Error Bounds for Basic Building Blocks of Double-Word Arithmetic”. In: ACM Transactions on Mathematical Software 44.2 (2017), pp. 1–27. DOI: 10.1145/3121432. URL: https://hal.science/hal-01351529.
[20] Donald E. Knuth. The Art of Computer Programming, Volume 2: Seminumerical Algorithms. 3rd ed. Reading, MA: Addison-Wesley, 1998.
[21] M. Lange and S. M. Rump. “Faithfully Rounded Floating-Point Computations”. In: ACM Transactions on Mathematical Software 46.3 (July 2020), pp. 1–20. DOI: 10.1145/3290955.
[22] Ole Møller. “Quasi Double-Precision in Floating Point Addition”. In: BIT Numerical Mathematics 5.1 (1965), pp. 37–50. DOI: 10.1007/BF01975722.
[23] Daichi Mukunoki and Katsuhisa Ozaki. Sparse Iterative Solvers Using High-Precision Arithmetic with Quasi Multi-Word Algorithms. Oct. 2025. arXiv: 2510.13536. URL: https://arxiv.org/abs/2510.13536.
[24] Jean-Michel Muller and Laurence Rideau. "Formalization of Double-Word Arithmetic, and Comments on "Tight and Rigorous Error Bounds for Basic Building Blocks of Double-Word Arithmetic"". In: ACM Transactions on Mathematical Software 48.1 (2022), pp. 1–24. DOI: 10.1145/3484514. URL: https://hal.science/hal-02972245v2.
[25] NVIDIA Corporation. NVIDIA L40S GPU Datasheet. 2023. URL: https://www.nvidia.com/en-us/data-center/140s/.
[26] Takeshi Ogita, Siegfried M. Rump, and Shin'ichi Oishi. "Accurate Sum and Dot Product". In: SIAM Journal on Scientific Computing 26.6 (2005), pp. 1955–1988. DOI: 10.1137/030601818.
[27] Katsuhisa Ozaki, Yuki Uchino, and Toshiyuki Imamura. "Ozaki scheme II: A GEMM-oriented emulation of floating-point matrix multiplication using an integer modular technique". In: The International Journal of High Performance Computing Applications (2026). DOI: 10.1177/10943420261467787. URL: https://doi.org/10.1177/10943420261467787.
[28] Pat H. Sterbenz. Floating-Point Computation. Prentice-Hall Series in Automatic Computation. Englewood Cliffs, NJ: Prentice-Hall, 1974, pp. xiv+316. ISBN: 0-13-322495-3.
[29] Yuki Uchino, Katsuhisa Ozaki, and Toshiyuki Imamura. "Performance enhancement of the Ozaki Scheme on integer matrix multiplication unit". In: The International Journal of High Performance Computing Applications 39.3 (May 2025), pp. 462–476. DOI: 10.1177/10943420241313064. URL: https://doi.org/10.1177/10943420241313064.
[30] Andrea Valassi. New GPU developments in the Madgraph CUDACPP plugin: kernel splitting, helicity streams, cuBLAS color sums. 2025. DOI: 10.48550/arXiv.2510.05392. arXiv: 2510.05392.
[31] Mingjiang Wang et al. "A two-item floating point fused dot-product unit with latency reduced". In: IEICE Electronics Express 13.23 (2016), p. 20160937. DOI: 10.1587/elex.13.20160937.
[32] Yuanyuan Yang et al. On the Robustness of Double-Word Addition Algorithms. Apr. 2024. arXiv: 2404.05948. URL: https://arxiv.org/abs/2404.05948.
[33] Yuanyuan Yang et al. Robustness of Double-Word Addition Algorithms under Overlapping Inputs. Preprint. Sept. 2026. DOI: 10.21203/rs.3.rs-10838188/v1. URL: https://doi.org/10.21203/rs.3.rs-10838188/v1.
[34] David K. Zhang and Alex Aiken. "Automatic Verification of Floating-Point Accumulation Networks". In: Computer Aided Verification. Ed. by Ruzica Piskac and Zvonimir Rakamarić. CAV 2025. Cham: Springer Nature Switzerland, 2025, pp. 215–237.
[35] David Kai Zhang and Alex Aiken. "High-Performance Branch-Free Algorithms for Extended-Precision Floating-Point Arithmetic". In: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC 2025). 2025. DOI: 10.1145/3712285.3759876. URL: https://dl.acm.org/doi/10.1145/3712285.3759876.