I have this code which runs a lot of times:
I know my program assing b = 0 about 35% of times. Does the CPU or compiled code runs into a complete multiplication routines, or does it returns 0 fast?Code:int z = 10; int x = b * z;
I ask this because I dont know if for speed optimization is better to put this code:
what is faster?Code:int z = 10; if (b) x = b*z;
thanks
FS