Move DIV_CEIL macro def to common.h
Fix issue with padding of step squares
Rename macros from common.h with camel-case