/************************************************************************
*									*
*           Compare Two Unsigned Integer Numbers (C Version)            *
*									*
************************************************************************/

/*  Authors:  Saeid Nooshabadi and John Zaitseff
    Date:     8th March, 2003
    Version:  1.2

    This very simple program compares two numbers together and returns the
    greater value.  The whole point of this program is to illustrate the
    concept of unsigned integers, as used in the "unsigned" variables.

    It is best to compile this code WITHOUT optimisation, so as to see the
    comparison instruction.  If this code IS compiled with optimisation,
    the GNU C Compiler is smart enough to figure out what code is
    redundant, and so never include that code!
*/


int main (void)
{
    unsigned a = 0xE0001234;
    unsigned b = 0x00004567;

    if (a > b) {
	return a;
    } else {
	return b;
    }
}

