chiark / gitweb /
new topology; check that graph and stuff makes sense
[moebius2.git] / common.h
index cb45e8107b2af322854f67b1065ea70a2ea692b8..ebc34d17a27eb3d578f7f60ca33bd2e9057ad6c4 100644 (file)
--- a/common.h
+++ b/common.h
@@ -50,6 +50,9 @@ void gsldie(int l, const char *what, int status);
 #define GSL_VECTOR(x) gsl_vector x##_gsl= { D3,1,&x[0] };
 #define GSL_MATRIX(x) gsl_matrix x##_gsl= { D3,D3,D3,&x[0][0] };
 
+#define MIN(a,b) ((a) <= (b) ? (a) : (b))
+#define MAX(a,b) ((a) >= (b) ? (a) : (b))
+
 #ifdef FP_FAST_FMA
 # define fma_fast fma
 #else