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

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 a...@arndb.de 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

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

2012-08-10 Thread David Miller
From: Jan Engelhardt jeng...@inai.de Date: Fri, 10 Aug 2012 14:51:49 +0200 (CEST) On Saturday 2012-07-21 02:46, David Miller wrote: Arnd Bergmann a...@arndb.de wrote: I don't generally like to put stuff into asm-generic when it's unlikely to be overridden by architectures. It would really

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-21 Thread Arnd Bergmann
On Friday 20 July 2012, David Howells wrote: Arnd Bergmann a...@arndb.de 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

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

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

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

[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

[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

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 definition

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

2012-07-20 Thread David Howells
Arnd Bergmann a...@arndb.de 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

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

2012-07-20 Thread David Miller
From: David Howells dhowe...@redhat.com Date: Fri, 20 Jul 2012 15:21:39 +0100 Arnd Bergmann a...@arndb.de 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

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

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 definition to

[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

[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