pyyeti.dsp.nextpow2

pyyeti.dsp.nextpow2(x)[source]

Return next power of two that is >= integer x

Examples

>>> nextpow2(4)
4
>>> nextpow2(5)
8