X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=utils.h;h=4e14bcf5cda246c477fc4a8854bbe7c45db5e66a;hb=7573880ac042c6e5c8d48b1ad83d357b5e02743b;hp=301a0753f086baa97834f8fc57d70c96c67069aa;hpb=8b468ec5022834d04b6be1cf45b4fe4f092c692e;p=project%2Fnetifd.git diff --git a/utils.h b/utils.h index 301a075..4e14bcf 100644 --- a/utils.h +++ b/utils.h @@ -98,10 +98,8 @@ static inline int fls(int x) x <<= 2; r -= 2; } - if (!(x & 0x80000000u)) { - //x <<= 1; + if (!(x & 0x80000000u)) r -= 1; - } return r; } #endif