is_pos_pow_two

forest.benchmarking.utils.is_pos_pow_two(x: int) → bool

Simple check that an integer is a positive power of two.

Parameters:x – number to check
Returns:whether x is a positive power of two