public static int align(int num) {
    return (int) align((long) num);
  }
Aligns a number to 8.
@param num number to align to 8
@return smallest number &gt;= input that is a multiple of 8
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ClassSize.java