Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions | Date | Fri, 20 Jul 2012 13:53:33 +0000 |
| |
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 <dhowells@redhat.com> > Cc: David S. Miller <davem@davemloft.net> > Cc: Dmitry Kasatkin <dmitry.kasatkin@intel.com> > Cc: Arnd Bergmann <arnd@arndb.de>
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 <arnd@arndb.de>
| |