nmrglue.process.proc_base.largest_power_of_2

nmrglue.process.proc_base.largest_power_of_2(value)[source]

Find the nearest power of two equal to or larger than a value.

Parameters
valueint

Value to find nearest power of two equal to or larger than.

Returns
pwint

Power of 2.