From: Lai Jiangshan Date: Mon, 17 Oct 2011 14:19:10 +0000 (-0400) Subject: rculfhash: Simplify lookup_bucket() X-Git-Tag: v0.7.0~43^2~90 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=a4ea2223fa701bd34b09fb3eede037908dbdd0c8;hp=a4ea2223fa701bd34b09fb3eede037908dbdd0c8;p=userspace-rcu.git rculfhash: Simplify lookup_bucket() They are the same, but I don't think the compiler can optimize it. And it also helps for understanding the following code. [ Edit by Mathieu Desnoyers: - Add a comment that describes the equivalence between get_count_order and fls for this lookup of index + 1. ] Signed-off-by: Lai Jiangshan Signed-off-by: Mathieu Desnoyers ---