[Python-ideas] Fused multiply-add (FMA)

Chris Angelico rosuav at gmail.com
Sun Jan 15 14:10:30 EST 2017


On Mon, Jan 16, 2017 at 4:25 AM, Juraj Sukop <juraj.sukop at gmail.com> wrote:
> There is a simple module for Python 3 demonstrating the fused multiply-add
> operation which was build with simple `python3 setup.py build` under Linux
> [9].
>
> Any feedback is greatly appreciated!

+1. Just tried it out, and apart from dropping a pretty little
SystemError when I fat-finger the args wrong (a trivial matter of
adding more argument checking), it looks good.

Are there any possible consequences (not counting performance) of the
fall-back? I don't understand all the code in what you linked to, but
I think what's happening is that it goes to great lengths to avoid
intermediate rounding, so the end result is always going to be the
same. If that's the case, yeah, definite +1 on the proposal.

ChrisA


More information about the Python-ideas mailing list