News for hackers. Stuff that matters.
Re:Vectorization: Introduction by dragontamer on Monday June 05, 2023 @09:36PM (#36206951)
Kahan summing doesn't fix cancellation error. It just extends the precision by another 53-bits or so.

The only way you fix cancellation error is summing the positives in one variable, and the negatives in another, and do a big cancellation at the end.

Anyway, my overall point is not to criticize Kahan summing or other techniques. My point is that these techniques are incompatible with optimizations. The faster way is often times a less stable operation.

There are no comments on this comment yet.