next up previous contents index
Next: Math Utility Functions Up: Utility Functions Previous: Time Functions

General Utility Macros

  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   )



SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.