g++ optimization question

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

 



Hi,

Can anybody let me know whether g++ will optimize for the following case?

void f(double d)
  double e;
  ..... do something

  e = d * 1.;// will this be optimized as e = d;
}

Thanks,
Peng

[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