News for hackers. Stuff that matters.
Re:Mathematicians discover a perfect way to multiply (2019) by bsder on Wednesday July 22, 2020 @08:07PM (#23922880)
No. And it's not true anywhere.

An integer multiplication always needs a "carry propagate add" step at the end. Consequently, addition is always faster because that's the final step of a multiplication. (Floating point is a little different, but not significantly so).

IF you have a chain of additions AND the multiplier has a way to forward the "carry save" representation (ie. the step right before the carry propagate add) AND your carry propagate add takes longer than a single clock cycle, you could theoretically get better performance by feeding the adds into the multiplier accumulation matrix (which is just a big matrix for doing a whole bunch of adds simultaneously).

That's a lot of "and" and "if". Nobody does it that way. The best you get is "fused multiply add".

There are no comments on this comment yet.