aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorTing Xu <ting.xu@intel.com>2023-02-06 03:01:10 +0000
committerDamjan Marion <dmarion@0xa5.net>2023-02-08 10:08:16 +0000
commitdc95634a237419433b8189bf41b3968640b1f97e (patch)
treedceb7134baea55f1ec8052518493fdf4f401709a /src/plugins
parent3b28fd730625a475a4093bec3e2ed9b1b6932131 (diff)
avf: fix bit calculation function fls_u32
In avf the function fls_u32 is used to calculate the power of 2. Fix the expression of this function. Type: fix Signed-off-by: Ting Xu <ting.xu@intel.com> Change-Id: I27160de8588a5efb3f24306597a5a240deb3ab74
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/avf/avf_fdir_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/avf/avf_fdir_lib.c b/src/plugins/avf/avf_fdir_lib.c
index b16c09f9742..cf774a7d138 100644
--- 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