aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flprefix.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2006-10-27 13:34:56 +0000
committerThomas Grill <xovo@users.sourceforge.net>2006-10-27 13:34:56 +0000
commit214066a139e6c680e8517c89a07431a9649321a0 (patch)
tree7d07326c1f6e5bc446f766db0022eaa90c8ea603 /externals/grill/flext/source/flprefix.h
parent021708ab4cee3245e2306cb107f67d85f00823c1 (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-xexternals/grill/flext/source/flprefix.h9
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