private static int [ ] pad ( int [ ] list ) { double m = list . length / ( double ) WORD_LENGTH ; int size = ( int ) Math . ceil ( m ) ; int [ ] ret = new int [ size * WORD_LENGTH ] ; Arrays . fill ( ret , 0 ) ; System . arraycopy ( list , 0 , ret , 0 , list . length ) ; return ret ; }
Increases the array size to a multiple of WORD_LENGTH