rfw2d
    Preparing search index...

    Function roundUpPowerOfTwo

    • Round a value up to a power of two. If n is a power of two, returns n.

      Parameters

      • n: number

        Number to round from

      Returns number

      Power of two

      Only works in a 32-bit range