From 253723b5ccece3c5f5ab3a4ff50f9f7792ce6f60 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 2 Jun 2007 19:56:57 -0600 Subject: [PATCH] add common.h for common includes, macros, etc. --- src/common.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/common.h diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000000..74924fd499 --- /dev/null +++ b/src/common.h @@ -0,0 +1,7 @@ +#ifndef COMMON_H +#define COMMON_H + +#define NO_RETURN __attribute__((noreturn)) +#define UNLIKELY(v) __builtin_expect(v, 0) + +#endif//COMMON_H