From f9882246a0784f20f12f997a5b1f8a0496d4ffb4 Mon Sep 17 00:00:00 2001 From: Stefan Kristiansson Date: Wed, 22 Feb 2012 07:10:09 +0000 Subject: openrisc/bitops: add hweightX defines Signed-off-by: Stefan Kristiansson --- arch/openrisc/include/asm/bitops.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/openrisc') diff --git a/arch/openrisc/include/asm/bitops.h b/arch/openrisc/include/asm/bitops.h index c001a5d1f6..c76a40901f 100644 --- a/arch/openrisc/include/asm/bitops.h +++ b/arch/openrisc/include/asm/bitops.h @@ -25,4 +25,8 @@ #define PLATFORM_FFS #include +#define hweight32(x) generic_hweight32(x) +#define hweight16(x) generic_hweight16(x) +#define hweight8(x) generic_hweight8(x) + #endif /* __ASM_GENERIC_BITOPS_H */ -- cgit v1.2.1