for(int i = ((a > b) ? x : y); i < c; i++){...}
How will this be compiled? Will it hurt performance due to lack of unrolling or something?
Name:
Anonymous2013-01-13 23:18
No, it probably wouldn't. Even if it did it would not be noticeable. This is probably better than the alternative in both readability and code length, which when programming today is far more important than performance, unless you are writing in a horribly backwards and slow language with shit code.