Added a constant expression to evaluate if a scalar is a power of 2 or not.