Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-08-10 Thread David Miller
From: Jan Engelhardt Date: Fri, 10 Aug 2012 14:51:49 +0200 (CEST) > > On Saturday 2012-07-21 02:46, David Miller wrote: >>> Arnd Bergmann wrote: >>> 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

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-08-10 Thread Jan Engelhardt
On Saturday 2012-07-21 02:46, David Miller wrote: >> Arnd Bergmann wrote: >> >>> 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-generi

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-07-21 Thread Arnd Bergmann
On Friday 20 July 2012, David Howells wrote: > > Arnd Bergmann wrote: > > > 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 > >

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-07-20 Thread David Miller
From: David Howells Date: Fri, 20 Jul 2012 15:21:39 +0100 > Arnd Bergmann wrote: > >> 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-ge

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-07-20 Thread David Howells
Arnd Bergmann wrote: > 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... Some arches (such as Sparc, I thin

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-07-20 Thread Arnd Bergmann
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 defini

[PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-07-20 Thread David Howells
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 usi

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-07-12 Thread James Morris
On Fri, 6 Jul 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 definitio

[PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-07-06 Thread David Howells
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 usi