Here you can find the source of divCeil(long a, long b)
public static long divCeil(long a, long b)
//package com.java2s; //License from project: Open Source License public class Main { public static int divCeil(int a, int b) { if (b < 0) { return divCeil(-a, -b); } else if (a >= 0) { return ((a + b - 1) / b); }/*from w w w .jav a 2 s. c om*/ return a / b; } public static long divCeil(long a, long b) { if (b < 0) { return divCeil(-a, -b); } else if (a >= 0) { return ((a + b - 1) / b); } return a / b; } }