fma operation

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

 



Hi,

i am have made tests with the library version of fma-function (http://en.wikipedia.org/wiki/Multiply-accumulate). 
I tested this code below on my linux machine. Now, my question is, what version is faster? Version (1) or (2)? How to determine, that this operation is executed faster on my machine?
int main()
{
   double a=10.2;
   double b=12.;
   double c=9.;
   double e =a*b+c;   // (1)
   //double e =fma(a,b,c); // (2)
}

Thanks in advance!

Best regards

Ettl Martin

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01

[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