From: Arend van Spriel Date: Mon, 9 May 2011 14:33:27 +0000 (+0200) Subject: staging: brcm80211: make use of fls bit operation in wlc_phy_compute_dB X-Git-Tag: v3.0-rc1~336^2~468 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8fbc3928cce0c8fa7c01afc33ddef02062504e1;p=pandora-kernel.git staging: brcm80211: make use of fls bit operation in wlc_phy_compute_dB wlc_phy_compute_dB converts absolute power value to dB implementing a fixed point calculation for 10*log10(x). It does this by determining the most significant bit for value x. This can be done using the fls() bit operation, which has arch specific and possibly more efficient implementation. Cc: devel@linuxdriverproject.org Cc: linux-wireless@vger.kernel.org Reviewed-by: Roland Vossen Reviewed-by: Henry Ptasinski Reviewed-by: Brett Rudley Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed