title: how to turn this function into mips assimply without using mul or div
body: <pre><code>int get_wtime(int pcount, int tcount)//calculate expected wtime from equation
  {
      int wtime = 0;
      /*
      * Wtime (Pcount = 0) = 0,
      * Wtime (Pcount  0,Tcount) = 3*(Pcount+Tcount-1)/Tcount
      */
      if (pcount == 0 || tcount == 0)
          wtime = 0;
      else
          wtime = 3 * (pcount + tcount - 1) / tcount;
      return wtime;
  }
  </code></pre>
  <p>i have a task that i can use shl or shr or add or addi to represent this equation in mips assimply 32 bit but i didn't find solution for that i try to use other instruction i tied with just these instruction</p>