4 * This source code is part of
8 * GROningen MAchine for Chemical Simulations
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
17 * GROMACS: A message-passing parallel molecular dynamics implementation
18 * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19 * Comp. Phys. Comm. 91, 43-56 (1995)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
27 * Good ROcking Metal Altar for Chronical Sinners
33 static char *SRCID_macros_h = "$Id$";
40 #ident "@(#) macros.h 1.8 11/23/92"
41 #endif /* HAVE_IDENT */
48 #include "typedefs.h" /* for real definition only */
51 * With the macros below you don't
52 * have to use an index if you don't wan't to. You can eg. use
53 * angle.C0[23] instead if angle.c[0][23].
54 * In a similar fashion, you can use angle.AI[3] instead of
69 #define min(a,b) (((a) < (b)) ? (a) : (b) )
70 #define max(a,b) (((a) > (b)) ? (a) : (b) )
71 #define even(a) ( ( (a+1) / 2) == (a / 2) )
73 /* This macro calculates the size of a array */
74 #define asize(a) (sizeof(a)/sizeof((a)[0]))
91 #endif /* _macros_h */