title: ceil conterpart for Math.floorDiv in Java?
body: <p>Is there any <code>ceil</code> counterpart for <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#floorDiv-long-long-" rel="noreferrer"><code>Math.floorDiv()</code></a></p>
  
  <p>How to calculate it fastest way with what we have?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The code for <code>floorDiv()</code> is follows:</p>
  
  <pre><code> public static long floorDiv(long x, long y) {
          long r = x / y;
          // if the signs are different and modulo not zero, round down
          if ((x ^ y) &lt; 0 &amp;&amp; (r * y != x)) {
              r--;
          }
          return r;
      }
  </code></pre>
  
  <p>Can we code <code>ceil</code> the similar way?</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>I saw this answer <a href="https://stackoverflow.com/a/7446742/258483">https://stackoverflow.com/a/7446742/258483</a> but it seems to have too many unnecessary operations.</p>