Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused code
  • Loading branch information
rhettinger committed Mar 15, 2023
commit 47e878d2f139076adfc587cbd0e86248582884c3
10 changes: 1 addition & 9 deletions Modules/mathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,6 @@ dl_mul(double x, double y)
return (DoubleLength) {z, zz};
}

static DoubleLength
dl_fma(double x, double y, DoubleLength total)
{
/* Algorithm 5.10 with SumKVert for K=2 */
DoubleLength pr = dl_mul(x, y);
DoubleLength sm = dl_sum(total.hi, pr.hi);
return DoubleLength {sm.hi, pr.lo + sm.lo + total.lo};
}

#endif

typedef struct { double hi; double lo; double tiny; } TripleLength;
Expand Down Expand Up @@ -2535,6 +2526,7 @@ vector_norm(Py_ssize_t n, double *vec, double max, int found_nan)

pr = dl_mul(x, x);
assert(pr.hi <= 1.0);

sm = dl_fast_sum(csum, pr.hi);
csum = sm.hi;
frac1 += pr.lo;
Expand Down