OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2770a21
)
silly me, thats not going to work.
author
Eric Andersen
<andersen@codepoet.org>
Sun, 10 Aug 2003 10:09:44 +0000
(10:09 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Sun, 10 Aug 2003 10:09:44 +0000
(10:09 -0000)
include/features.h
patch
|
blob
|
history
diff --git
a/include/features.h
b/include/features.h
index
6bf8bc2
..
440718d
100644
(file)
--- 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