NextPow2: Next power of 2

NextPow2R Documentation

Next power of 2

Description

Find the next integer power of 2

Usage

NextPow2(x)

Arguments

x

integer

Value

integer that is a power of 2 higher than given integer

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples


NextPow2(600)
NextPow2(1023)
NextPow2(1025)




ClamR documentation built on Aug. 21, 2023, 9:09 a.m.