2017-01-15 18:25 GMT+01:00 Juraj Sukop <juraj.su...@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 _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/