Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat Add __predict_true / __predict_false definitions.



details:   https://anonhg.NetBSD.org/src/rev/15054fc0fc0e
branches:  trunk
changeset: 779574:15054fc0fc0e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Jun 03 21:01:43 2012 +0000

description:
Add __predict_true / __predict_false definitions.

diffstat:

 tools/compat/compat_defs.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 4af2c5a7263d -r 15054fc0fc0e tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Sun Jun 03 17:12:49 2012 +0000
+++ b/tools/compat/compat_defs.h        Sun Jun 03 21:01:43 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.84 2012/06/02 22:54:52 joerg Exp $   */
+/*     $NetBSD: compat_defs.h,v 1.85 2012/06/03 21:01:43 joerg Exp $   */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -72,6 +72,11 @@
 #endif
 #define __UNCONST(a)   ((void *)(unsigned long)(const void *)(a))
 
+#undef __predict_false
+#define __predict_false(x) x
+#undef __predict_true
+#define __predict_true(x) x
+
 /* We don't include <pwd.h> here, so that "compat_pwd.h" works. */
 struct passwd;
 



Home | Main Index | Thread Index | Old Index