create MOVE_FORWARD_OR_BACKWARD_INLINE macro