diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-07 15:36:31 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-07 15:36:31 +0800 |
commit | b03bddca8a4dec4485184de9dfe87b803f4b190a (patch) | |
tree | 150ade0c76a6ee54b9ada960dfba3d9b73e43c84 /include | |
parent | 05f8a1d5f8d6625e30dffcc26b70e6226ff2c025 (diff) | |
download | pttbbs-b03bddca8a4dec4485184de9dfe87b803f4b190a.tar pttbbs-b03bddca8a4dec4485184de9dfe87b803f4b190a.tar.gz pttbbs-b03bddca8a4dec4485184de9dfe87b803f4b190a.tar.bz2 pttbbs-b03bddca8a4dec4485184de9dfe87b803f4b190a.tar.lz pttbbs-b03bddca8a4dec4485184de9dfe87b803f4b190a.tar.xz pttbbs-b03bddca8a4dec4485184de9dfe87b803f4b190a.tar.zst pttbbs-b03bddca8a4dec4485184de9dfe87b803f4b190a.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |