GCC beaten by ICC in stupid trig test!

Per Abrahamsen abraham@dina.kvl.dk
Thu Mar 25 18:19:00 GMT 2004


Joe Buck <Joe.Buck@synopsys.COM> writes:

> No.  Why would we need such a thing?  If the user does not care about
> order of evaluation, the user can write a+b+c .  

I write 

  1.0 * (a + b) + c

all the times in cases where I don't care about order of evaluation.

Or rather, I write 

  const double dt = 1.0; // [h]
  
  double foo (double a /* [kg N/h] */,
              double b /* [kg N/h] */,
              double c /* [kg N] */)
  { return dt * (a + b) + c; }



More information about the Gcc mailing list