http://www.cyberspace.org/~jhl/miscc.c
/*******************************************************************************
* Function : int max(int n1, int n2);
* Author : lovecreatesbeauty@gmail_Del.com [Remove _Del for email]
* Date : 2007.11.18
* Description: Determine the maximum of two integers.
******************************************************************************/
#include <limits.h>
int max(int n1, int n2)
{
int a[2];
a[0] = n1, a[1] = n2;
return a[((unsigned)(a[0] - a[1]) >> sizeof n1 * CHAR_BIT - 1)];
}
#define MAX(N1, N2) (max((N1), (N2)))