3 ms·Good thinking. Most modern compilers will recognise abs() and generate efficient code.by mansr 14y agoGood thinking. Most modern compilers will recognise abs() and generate efficient code.