helpers: Add a helper macro for calculating power of 2