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

2012-06-21 Thread Akinobu Mita
2012/6/21 Tony Luck tony.l...@gmail.com: On Fri, Jun 8, 2012 at 5:50 PM, Akinobu Mita akinobu.m...@gmail.com 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      

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 akinobu.m...@gmail.com 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

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 akinobu.m...@gmail.com 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

[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 akinobu.m...@gmail.com Cc: Anders