From: David Howells Date: Thu, 13 Sep 2012 12:09:33 +0000 (+0100) Subject: MPILIB: Provide count_leading/trailing_zeros() based on arch functions X-Git-Tag: v3.7-rc1~2^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aacf29bf1bf133f6219e6f8969d4ebc2ac76458f;p=pandora-kernel.git MPILIB: Provide count_leading/trailing_zeros() based on arch functions Provide count_leading/trailing_zeros() macros based on extant arch bit scanning functions rather than reimplementing from scratch in MPILIB. Whilst we're at it, turn count_foo_zeros(n, x) into n = count_foo_zeros(x). Also move the definition to asm-generic as other people may be interested in using it. Signed-off-by: David Howells Cc: David S. Miller Cc: Dmitry Kasatkin Cc: Arnd Bergmann Signed-off-by: Rusty Russell --- Reading git-diff-tree failed