This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC beaten by ICC in stupid trig test!


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; }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]