Enable level 2 optimizations
Use ternary statements to facilitate conditional moves