power-of-two
Power of two math utility for Haxe
PowerOfTwo.next(x:Int)returns next POT value. For example for 16 it will be 32, for 24 it will be also 32PowerOfTwo.check(x:Int)checks if value is POT (excluding 0)PowerOfTwo.require(x:Int)returnsxif POT, else returns nearest next POT