]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Create and use asm/arch_hweight.h
authorDavid Daney <ddaney@caviumnetworks.com>
Fri, 25 Jun 2010 23:46:07 +0000 (16:46 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:02 +0000 (13:26 +0100)
commit6854b2d44ee9284e722e14cc2ed1f7edb6100e20
treee96d31e561f13695e591cd2eadd116c4994624e6
parente767be4ec6045995db1a042306905d2cb4e0590a
MIPS: Create and use asm/arch_hweight.h

Some MIPS ISA processor varients can do hweight operations
efficiently.

Split arch_hweight.h into a seperate file, and implement the
operations with __builtin_popcount{,ll} if supported.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Cc: David Daney <ddaney@caviumnetworks.com>
Patchwork: https://patchwork.linux-mips.org/patch/1430/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/arch_hweight.h [new file with mode: 0644]
arch/mips/include/asm/bitops.h