From: Bruno Randolf Date: Thu, 2 Dec 2010 10:50:37 +0000 (+0900) Subject: lib: Improve EWMA efficiency by using bitshifts X-Git-Tag: v2.6.38-rc1~476^2~169^2^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af5568843594fb71055debe36e521fa8072fcecc;p=pandora-kernel.git lib: Improve EWMA efficiency by using bitshifts Using bitshifts instead of division and multiplication should improve performance. That requires weight and factor to be powers of two, but i think this is something we can live with. Thanks to Peter Zijlstra for the improved formula! Signed-off-by: Bruno Randolf -- v2: use log2.h functions Signed-off-by: John W. Linville --- Reading git-diff-tree failed