Nearest up power of two
From Director Online Wiki
--/****** --* NEAREST UP POWER OF TWO --**** --* @Param : 'x' <Integer> --* @Return : '' <Integer> --***/ on mNearestUpPowerOfTwo( x ) if Not(IntegerP(x)) then return( FALSE ) return( integer(power(2, ceil(log(x)/log(2)))) + (x <= 1) ) end --*/