return the integer log , base 2 , of n , or -1 if n is not an integral power of 2 . concode_field_sep PlaceHolder placeHolder concode_field_sep int[] factor
int function ( int arg0 ) { int loc0 = 0 ; for ( int loc1 = 1 ; loc1 < arg0 ; loc1 *= 2 , loc0 ++ ) { ; } if ( arg0 != ( 1 << loc0 ) ) { return - 1 ; } return loc0 ; }