On Friday 20 July 2012, David Howells wrote: > 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 <[email protected]> > Cc: David S. Miller <[email protected]> > Cc: Dmitry Kasatkin <[email protected]> > Cc: Arnd Bergmann <[email protected]>
I don't generally like to put stuff into asm-generic when it's unlikely to be overridden by architectures. It would really belong into include/linux, but then again we have all the other bitops in asm-generic as well, so whatever... Acked-by: Arnd Bergmann <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

