All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arch_hweight implementation for MIPS
@ 2010-06-25 23:46 David Daney
  2010-06-25 23:46 ` [PATCH 1/2] MIPS: Create and use asm/arch_hweight.h David Daney
  2010-06-25 23:46 ` [PATCH 2/2] MIPS: Octeon: Define ARCH_HAS_USABLE_BUILTIN_POPCOUNT for OCTEON David Daney
  0 siblings, 2 replies; 5+ messages in thread
From: David Daney @ 2010-06-25 23:46 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: David Daney

Recently the core hweight implementation was reworked to make it
easier for an architecture to implement optimized hweight()
operations.

For MIPS, I get lazy and fall back to letting GCC emit the optimized
code if it can.  If ARCH_HAS_USABLE_BUILTIN_POPCOUNT is defined, we
let GCC do it, otherwise, the fallback library call is used.

The second patch turns this on for OCTEON as it has POP and DPOP
instructions that GCC knows about.

David Daney (2):
  MIPS: Create and use asm/arch_hweight.h
  MIPS: Octeon: Define ARCH_HAS_USABLE_BUILTIN_POPCOUNT for OCTEON.

 arch/mips/include/asm/arch_hweight.h               |   38 ++++++++++++++++++++
 arch/mips/include/asm/bitops.h                     |    5 ++-
 .../asm/mach-cavium-octeon/cpu-feature-overrides.h |    8 ++++
 3 files changed, 50 insertions(+), 1 deletions(-)
 create mode 100644 arch/mips/include/asm/arch_hweight.h

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-06 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-25 23:46 [PATCH 0/2] arch_hweight implementation for MIPS David Daney
2010-06-25 23:46 ` [PATCH 1/2] MIPS: Create and use asm/arch_hweight.h David Daney
2010-07-06 13:57   ` Ralf Baechle
2010-06-25 23:46 ` [PATCH 2/2] MIPS: Octeon: Define ARCH_HAS_USABLE_BUILTIN_POPCOUNT for OCTEON David Daney
2010-07-06 13:57   ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.