Here you can find the source of roundUpTo8(final long number)
private static long roundUpTo8(final long number)
//package com.java2s; //License from project: Open Source License public class Main { private static long roundUpTo8(final long number) { return ((number + 7) / 8) * 8; }// w w w .ja v a2 s . c om }