Skip to content

Commit 56d5c65

Browse files
committed
Fix quick_mult.
1 parent ed5f066 commit 56d5c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/FPUtil/double_double.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ LIBC_INLINE DoubleDouble quick_mult(double a, const DoubleDouble &b) {
122122
return r;
123123
}
124124

125-
template <bool NO_FMA_ALL_ROUNDINGS = false>
125+
template <size_t SPLIT_B = 27>
126126
LIBC_INLINE DoubleDouble quick_mult(const DoubleDouble &a,
127127
const DoubleDouble &b) {
128-
DoubleDouble r = exact_mult<NO_FMA_ALL_ROUNDINGS>(a.hi, b.hi);
128+
DoubleDouble r = exact_mult<SPLIT_B>(a.hi, b.hi);
129129
double t1 = multiply_add(a.hi, b.lo, r.lo);
130130
double t2 = multiply_add(a.lo, b.hi, t1);
131131
r.lo = t2;

0 commit comments

Comments
 (0)