add various bootstrap types; implement more helper functions; add LIKELY() and UNLIKELY() macro invocations where appropriate; add PROTECT() macro

This commit is contained in:
Joel Dice
2007-06-07 18:23:12 -06:00
parent 94338e15a8
commit 26bfa24c16
3 changed files with 253 additions and 128 deletions

View File

@ -7,7 +7,8 @@
#include "stdio.h"
#define NO_RETURN __attribute__((noreturn))
#define UNLIKELY(v) __builtin_expect(v, 0)
#define LIKELY(v) __builtin_expect((v) != 0, true)
#define UNLIKELY(v) __builtin_expect((v) == 0, true)
#define MACRO_XY(X, Y) X##Y
#define MACRO_MakeNameXY(FX, LINE) MACRO_XY(FX, LINE)