projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2075ca8
)
CLEANUP: remove unused code in 'my_ffsl/my_flsl' functions
author
Miroslav Zagorac
<mzagorac@haproxy.com>
Sun, 8 Mar 2020 15:32:20 +0000
(16:32 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Mon, 9 Mar 2020 13:47:27 +0000
(14:47 +0100)
Shifting the variable 'a' one bit to the right has no effect on the
result of the functions.
include/common/standard.h
patch
|
blob
|
history
diff --git
a/include/common/standard.h
b/include/common/standard.h
index
6e1e840
..
ea1e86d
100644
(file)
--- 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 */