------- Comment #2 from pinskia at gcc dot gnu dot org 2009-04-22 21:32 ------- Actually this comes down to: int f(int a, int c) { if (a) return a*c; return 0; }
It might be faster to use the branch rather than the multiple, I don't know and I think it depends on the target. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32226