pow2

function pow2(x:Integer16) -> Integer16

Round an integer up to the next power of two. Zero and negative integers return zero.

function pow2(x:Integer32) -> Integer32

Round an integer up to the next power of two. Zero and negative integers return zero.

function pow2(x:Integer64) -> Integer64

Round an integer up to the next power of two. Zero and negative integers return zero.

function pow2(x:Integer8) -> Integer8

Round an integer up to the next power of two. Zero and negative integers return zero.