FMA using Vc
Matthias Kretz
[please enable javascript to see the address]
Sat Nov 15 18:07:05 CET 2014
Hi,
On Thursday 06 November 2014 10:09:32 Raman Sehgal wrote:
> Is is possible to use FMA instruction with AVX in Vc.
>
> I will be highly obliged if you give some code snippet to do FMA with Vc.
Your compiler can/should fuse multiply and add operations automatically. Thus
if you write:
float_v x, y, z;
x = x * y + z;
then the compiler should translate this as an FMA. GCC and clang have compiler
flags to enable/disable this fusing, so take a look at your compiler manual if
you're unsure.
Cheers,
Matthias
--
─────────────────────────────────────────────────────────────
Dipl.-Phys. Matthias Kretz
Web: http://compeng.uni-frankfurt.de/?mkretz
SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc
─────────────────────────────────────────────────────────────
More information about the Vc
mailing list