RE: how do I promise const to the optimizer?

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

 



Hi Marco,

Does this work:

int bar(const val *__restrict__ x, const int t)
{
  const int value = x->tag * t;
  return fun(x, value) + fun(x, value);
}

Should optimize nicely.

HTH,
--Eljay


[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