How to get a vector FMA with GCC in a portable way?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would like to know how to get a vector FMA with GCC in a portable
way.

By "portable way", I mean that the behavior must not depend on the
compilation options (e.g., if FP contraction is disabled, I still
want a true FMA) and that the code must not depend on the architecture
(thus intrinsics should not be used... even when restricting to x86,
one reason is FMA3 vs FMA4 issues).

For instance, for addition, one can write "a + b". But for FMA?

Thanks,

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux