This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to speed up

Hi All

Consult a while, has any tips can speed the judgment of"Switch case" in keil c??

Seem to make the common use parameter putting the front to judge first ??

For examples,if c equal one more then equal two

so we can write down like this

   switch(c)
  {
   case 1:
      break;
   case 2:
      break;
  }

an we don't use this type

   switch(c)
  {
   case 2
      break;
   case 1
      break;
  }

Is any tips like this can use in "switch case" in
keil c??

Sorry for my poor english^^"""

Thanks

0