From b03bddca8a4dec4485184de9dfe87b803f4b190a Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 7 May 2004 07:36:31 +0000 Subject: refactor show_brdlist() I hope these local variable wont cost too much @@; git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1927 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index fd81bec9..1532131a 100644 --- a/include/common.h +++ b/include/common.h @@ -193,4 +193,13 @@ #define LOG_CREAT 1 #define LOG_VF 2 + +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96) + #define __builtin_expect(exp,c) (exp) + +#endif + +#define likely(x) __builtin_expect(!!(x), 1) +#define unlikely(x) __builtin_expect(!!(x), 0) + #endif -- cgit v1.2.3