Here you can find the source of align(long value, int al)
public static long align(long value, int al)
//package com.java2s; public class Main { public static long align(long value, int al) { int rest = (int) (value % (long) al); return value - rest; }/*w w w. ja v a 2 s . c om*/ public static int align(int value, int al) { int rest = (value % al); return value - rest; } }