Replaced ROTATE_* with ROT* defined in macros.h