I have two code like this.
CODE 1 :
switch(val) { case 0: tmp = val*misc; break; case 1: tmp = val + misc; break; case 2: tmp = val/misc; brea