diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-10-27 13:34:56 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-10-27 13:34:56 +0000 |
commit | 214066a139e6c680e8517c89a07431a9649321a0 (patch) | |
tree | 7d07326c1f6e5bc446f766db0022eaa90c8ea603 /externals/grill/flext/source/flprefix.h | |
parent | 021708ab4cee3245e2306cb107f67d85f00823c1 (diff) |
fix for Codewarrior compilation
update docs
fixed anything/symbol message mixup (thanks to Stefano Papetti)
fixed typos, dates, contact info
added gcc branch hinting
svn path=/trunk/; revision=6170
Diffstat (limited to 'externals/grill/flext/source/flprefix.h')
-rwxr-xr-x | externals/grill/flext/source/flprefix.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flprefix.h b/externals/grill/flext/source/flprefix.h index 4568a1cc..0855f73d 100755 --- a/externals/grill/flext/source/flprefix.h +++ b/externals/grill/flext/source/flprefix.h @@ -412,5 +412,14 @@ WARRANTIES, see the file, "license.txt," in this distribution. #define STD #endif +// branching hints +#ifdef __GNUC__ +#define LIKELY(expression) (__builtin_expect(!!(expression), 1)) +#define UNLIKELY(expression) (__builtin_expect(!!(expression), 0)) +#else +#define LIKELY(expression) (expression) +#define UNLIKELY(expression) (expression) +#endif + #endif // __FLEXT_PREFIX_H |