[U-Boot] [PATCH 1/2] openrisc/bitops: add hweightX defines
Stefan Kristiansson
stefan.kristiansson at saunalahti.fi
Wed Feb 22 18:15:02 CET 2012
On Wed, Feb 22, 2012 at 07:10:09PM +0200, Stefan Kristiansson wrote:
> Signed-off-by: Stefan Kristiansson <stefan.kristiansson at saunalahti.fi>
> ---
> arch/openrisc/include/asm/bitops.h | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/openrisc/include/asm/bitops.h b/arch/openrisc/include/asm/bitops.h
> index c001a5d..c76a409 100644
> --- a/arch/openrisc/include/asm/bitops.h
> +++ b/arch/openrisc/include/asm/bitops.h
> @@ -25,4 +25,8 @@
> #define PLATFORM_FFS
> #include <asm/bitops/ffs.h>
>
> +#define hweight32(x) generic_hweight32(x)
> +#define hweight16(x) generic_hweight16(x)
> +#define hweight8(x) generic_hweight8(x)
> +
> #endif /* __ASM_GENERIC_BITOPS_H */
> --
> 1.7.5.4
>
Sorry, screwed up when I format-patched this,
there is no part 2 to it.
Stefan
More information about the U-Boot
mailing list