question: returns the next power of 2 given a certain integer value code was partially taken from ij.plugin.fft.java : : pad . thanks for the inspiration ! concode_field_sep int sizeOfBead concode_elem_sep ImagePlus image concode_elem_sep int vW concode_elem_sep int vH concode_elem_sep double end concode_elem_sep double r concode_elem_sep boolean configured concode_elem_sep double start concode_elem_sep Roi roi concode_elem_sep boolean init concode_elem_sep int vD concode_field_sep double[] add concode_elem_sep void add concode_elem_sep void init concode_elem_sep Plot createPlot concode_elem_sep void run concode_elem_sep double[] computeModelMTF concode_elem_sep void configure concode_elem_sep double trilinear concode_elem_sep double[] computeMTF concode_elem_sep ImagePlus[] getAvailableImagePlusAsArray concode_elem_sep double queryDouble concode_elem_sep double[] minAndMaxOfArray concode_elem_sep double[] convolve concode_elem_sep int queryInt concode_elem_sep double abs concode_elem_sep double[] fft concode_elem_sep double[] getPixels concode_elem_sep double[] computeComplexFrequencies concode_elem_sep ArrayList<ImagePlus> getAvailableImagePlus concode_elem_sep String toString concode_elem_sep double[] divide concode_elem_sep Object evaluate
target: int function ( int arg0 ) { int loc0 = 2 ; while ( loc0 < arg0 ) { loc0 *= 2 ; } return loc0 ; }