dovecot: unlikely() and likely() were broken with non-gcc.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Nov 26 20:19:22 EET 2007
details: http://hg.dovecot.org/dovecot/rev/ff884d70197b
changeset: 6862:ff884d70197b
user: Timo Sirainen <tss at iki.fi>
date: Mon Nov 26 20:19:19 2007 +0200
description:
unlikely() and likely() were broken with non-gcc.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib/macros.h | 4 ++--
diffs (14 lines):
diff -r b08d98ebb2a7 -r ff884d70197b src/lib/macros.h
--- a/src/lib/macros.h Mon Nov 26 12:18:25 2007 +0200
+++ b/src/lib/macros.h Mon Nov 26 20:19:19 2007 +0200
@@ -172,8 +172,8 @@
# define unlikely(expr) __builtin_expect(!!(expr), 0)
# define likely(expr) __builtin_expect(!!(expr), 1)
#else
-# define unlikely(expr)
-# define likely(expr)
+# define unlikely(expr) expr
+# define likely(expr) expr
#endif
/* Provide macros for error handling. */
More information about the dovecot-cvs
mailing list