X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=utils.h;h=4e14bcf5cda246c477fc4a8854bbe7c45db5e66a;hp=301a0753f086baa97834f8fc57d70c96c67069aa;hb=944f30d3f96577464545dd35691f96b06fbcc6ab;hpb=7f5a597e21127ed30fb9dc579cf7defa46c7f3f2 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