rename IN_RANGE() to IS_IN_RANGE() for clarity
rename ALLOC() to ALLOC_STRUCT() for clarity
add IS_POWER_OF_TWO() macro