From: Stefan Kristiansson Date: Wed, 22 Feb 2012 07:10:09 +0000 (+0000) Subject: openrisc/bitops: add hweightX defines X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f9882246a0784f20f12f997a5b1f8a0496d4ffb4;p=project%2Fbcm63xx%2Fu-boot.git openrisc/bitops: add hweightX defines Signed-off-by: Stefan Kristiansson --- 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 */