Re: [PATCH v3 1/9] string: introduce memweight

2012-06-21 Thread Akinobu Mita
2012/6/21 Tony Luck : > On Fri, Jun 8, 2012 at 5:50 PM, Akinobu Mita wrote: >>  lib/string.c           |   36 > > Is lib/string.c the right place for this?  I get a build error on the > ia64 sim_defconfig: > >  LD      arch/ia64/hp/sim/boot/bootloader > > It fa

Re: [PATCH v3 1/9] string: introduce memweight

2012-06-20 Thread Tony Luck
On Fri, Jun 8, 2012 at 5:50 PM, Akinobu Mita wrote: >  lib/string.c           |   36 Is lib/string.c the right place for this? I get a build error on the ia64 sim_defconfig: LD arch/ia64/hp/sim/boot/bootloader It fails because it pulls in lib/lib.a(s

Re: [PATCH v3 1/9] string: introduce memweight

2012-06-11 Thread Andrew Morton
On Sat, 9 Jun 2012 09:50:30 +0900 Akinobu Mita wrote: > memweight() is the function that counts the total number of bits set > in memory area. Unlike bitmap_weight(), memweight() takes pointer > and size in bytes to specify a memory area which does not need to be > aligned to long-word boundary

[PATCH v3 1/9] string: introduce memweight

2012-06-08 Thread Akinobu Mita
memweight() is the function that counts the total number of bits set in memory area. Unlike bitmap_weight(), memweight() takes pointer and size in bytes to specify a memory area which does not need to be aligned to long-word boundary. Signed-off-by: Akinobu Mita Cc: Anders Larsen Cc: Alasdair K