use macros for inline optimizations during alignment