int function ( int arg0 ) { arg0 |= ( arg0 >> 1 ) ; arg0 |= ( arg0 >> 2 ) ; arg0 |= ( arg0 >> 4 ) ; arg0 |= ( arg0 >> 8 ) ; arg0 |= ( arg0 >> 16 ) ; return arg0 + 1 ; }
next largest power of 2 : given a binary integer value x , the next largest power of 2 can be computed by a swar algorithm that recursively `` folds '' the upper bits into the lower bits . this process yields a bit vector with the same most significant 1 as x , but all 1 's below it . adding 1 to that value yields the next largest power of 2 . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isPowerOfTwo concode_elem_sep float min concode_elem_sep float abs concode_elem_sep float max concode_elem_sep float degToRad concode_elem_sep float radToDeg concode_elem_sep float clamp concode_elem_sep Vector2 clamp