2

I've gotten great performance benefit from using the mad function in the c++AMP library. I was wondering if there is a similar function for regular c++ 11? All I found googling was stuff on AVX intrinsics but I'd rather avoid them due to them not being universally supported.

Also, they seem to be all made for processing 4+ mad operations at the same time and I'm not sure that constructing an environment for that to happen while actually just using 1 of them is even efficient.

4

1 回答 1

3

在 C 和 C++ 中,有 fma 系列的数学函数:

由于它们是标准库的一部分,它们应该具有足够的可移植性。

于 2015-03-04T13:20:04.517 回答