# mcrl2/utilities/power_of_two.h¶

Include file:

#include "mcrl2/utilities/power_of_two.h"


## Functions¶

static constexpr bool mcrl2::utilities::is_power_of_two(T value)

Returns: True when the given value is a power of two.

static T mcrl2::utilities::round_up_to_power_of_two(T value)

Returns: The smallest power of two that is larger than the given value.