summaryrefslogtreecommitdiff
path: root/include/features.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-10 10:09:44 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-10 10:09:44 +0000
commit85a056b07157605c8bc15c873bb1a4116e6add60 (patch)
tree6f152053973d6e460d2187f8cfd5e40f56311d8e /include/features.h
parent2770a21e748c7538200868efda845ee1870ff9bf (diff)
silly me, thats not going to work.
Diffstat (limited to 'include/features.h')
-rw-r--r--include/features.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/features.h b/include/features.h
index 6bf8bc2fa..440718d26 100644
--- a/include/features.h
+++ b/include/features.h
@@ -421,9 +421,8 @@ uClibc was built without large file support enabled.
#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
#define __builtin_expect(x, expected_value) (x)
#endif
-
-#define likely(x) __builtin_expect(!((int)(x)),0)
-#define unlikely(x) __builtin_expect(((int)(x)),0)
+#define likely(x) __builtin_expect((!!(x)),1)
+#define unlikely(x) __builtin_expect((x),0)
/* --- this is added to integrate linuxthreads */
#define __USE_UNIX98 1