Some macros of general interest:
#define G_ABS(A) ( 0 < (A) ? (A) : (-(A)) ) #define G_MAX(A,B) ( (A) > (B) ? (A) : (B) ) #define G_MIN(A,B) ( (A) < (B) ? (A) : (B) ) #define G_SGN(A) ( (A) < 0 ? (-1) : 1 )
Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.