[Python-ideas] Fused multiply-add (FMA)
Victor Stinner
victor.stinner at gmail.com
Mon Jan 16 03:45:47 EST 2017
2017-01-15 18:25 GMT+01:00 Juraj Sukop <juraj.sukop at gmail.com>:
> C99 includes `fma` function to `math.h` [6] and emulates the calculation if
> the FMA instruction is not present on the host CPU [7].
If even the libc function has a fallback on x*y followed by +z, it's
fine to add such function to the Python stdlib. It means that Python
can do the same if the libc lacks a fma() function. In the math
module, the trend is more to implement missing functions or add
special code to workaround bugs or limitations of libc functions.
Victor
More information about the Python-ideas
mailing list