fma operation

Martin Ettl ettl.martin@gmx.de
Fri Apr 10 16:37:00 GMT 2009


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



More information about the Gcc-help mailing list