-#undef MIN
-#undef MAX
-#define MAX(x, y) ((x) > (y) ? (x) : (y))
-#define MIN(x, y) ((x) < (y) ? (x) : (y))
-
-/* calculate the address of the one past last element of an array whose size is
- * known statically */
-#define ENDOF(x) ((x) + sizeof(x) / sizeof(*(x)))
-
-/**
- * Three valued compare as demanded by e.g. qsort(3)
- * @param c A number.
- * @param d Another number.
- * @return 0 if c == d, -1 if c < d, 1 if c > d.
- */
-#define QSORT_CMP(c, d) (((c) > (d)) - ((c) < (d)))
-
-
-/**
- * convert an integer into pointer
- */
-#define INT_TO_PTR(v) ((void *)((char *)0 + (v)))
-