Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
avf: fix bit calculation function fls_u32
[vpp.git]
/
src
/
plugins
/
avf
/
avf_fdir_lib.c
diff --git
a/src/plugins/avf/avf_fdir_lib.c
b/src/plugins/avf/avf_fdir_lib.c
index
b16c09f
..
cf774a7
100644
(file)
--- a/
src/plugins/avf/avf_fdir_lib.c
+++ b/
src/plugins/avf/avf_fdir_lib.c
@@
-28,7
+28,7
@@
static inline int
fls_u32 (u32 x)
{
- return (x == 0) ? 0 :
32
- count_leading_zeros (x);
+ return (x == 0) ? 0 :
64
- count_leading_zeros (x);
}
static inline int