#ifndef _TT_MACROS_H_
#define _TT_MACROS_H_

#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))

#define MAX(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b; })

#define MIN(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a < _b ? _a : _b; })

#define _inline inline __attribute__((__always_inline__))

#endif
