ARM: replace some #if with if()