move is_aligned() helper function into bertos/cfg/macros.h