Avoids undefined behaviour in ARM-optimized code