title: x86 Assembly (AT&T): Is there a built in function for determining the minimum/maximum of two values?
body: <p>I am implementing a program in Assembly that requires be to determine the minimum or maximum of two registers and values. Is there a built-in function in Assembly like <code>imul</code> or <code>addl</code> that allows me to do this, or do I have to implement this from scratch using a combination of <code>cmpl</code> and <code>mov</code> statements?</p>