public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* fma operation
@ 2009-04-10 16:37 Martin Ettl
  0 siblings, 0 replies; only message in thread
From: Martin Ettl @ 2009-04-10 16:37 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-10 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-10 16:37 fma operation Martin Ettl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).