git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/util: More portable use of builtin popcnt.
[sliver-openvswitch.git]
/
lib
/
util.c
diff --git
a/lib/util.c
b/lib/util.c
index
13d41a7
..
000504c
100644
(file)
--- a/
lib/util.c
+++ b/
lib/util.c
@@
-901,7
+901,7
@@
raw_clz64(uint64_t n)
}
#endif
-#if
!(__GNUC__ >= 4 && defined(__corei7))
+#if
NEED_COUNT_1BITS_8
#define INIT1(X) \
((((X) & (1 << 0)) != 0) + \
(((X) & (1 << 1)) != 0) + \