Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix doxygen syntax
[simgrid.git] / include / xbt / misc.h
index 6a5f341..cb1ef33 100644 (file)
 #    define XBT_INLINE  inline
 #endif
 
+/* improvable on gcc (by evaluating arguments only once), but wouldn't be portable */
+#ifdef MIN
+# undef MIN
+#endif
+#define MIN(a,b) ((a)<(b)?(a):(b))
+
+#ifdef MAX
+# undef MAX
+#endif
+#define MAX(a,b) ((a)>(b)?(a):(b))
+
+
 /* 
  * Function calling convention (not used for now) 
  */