From: Miroslav Zagorac Date: Sun, 8 Mar 2020 15:32:20 +0000 (+0100) Subject: CLEANUP: remove unused code in 'my_ffsl/my_flsl' functions X-Git-Tag: v2.2-dev4~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7dc67ba1d9abc72a7aae12fca56c67befd8a1ec;p=thirdparty%2Fhaproxy.git CLEANUP: remove unused code in 'my_ffsl/my_flsl' functions Shifting the variable 'a' one bit to the right has no effect on the result of the functions. --- diff --git a/include/common/standard.h b/include/common/standard.h index 6e1e840b79..ea1e86d98c 100644 --- a/include/common/standard.h +++ b/include/common/standard.h @@ -902,7 +902,6 @@ static inline unsigned int my_ffsl(unsigned long a) cnt += 2; } if (!(a & 0x1)) { - a >>= 1; cnt += 1; } #endif /* x86_64 */ @@ -946,7 +945,6 @@ static inline unsigned int my_flsl(unsigned long a) cnt += 2; } if (a & 0x2) { - a >>= 1; cnt += 1; } #endif /* x86_64 */