projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bcffa6
)
openrisc/bitops: add hweightX defines
author
Stefan Kristiansson
<stefan.kristiansson@saunalahti.fi>
Wed, 22 Feb 2012 07:10:09 +0000
(07:10 +0000)
committer
Tom Rini
<trini@ti.com>
Tue, 2 Oct 2012 18:55:45 +0000
(11:55 -0700)
Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
arch/openrisc/include/asm/bitops.h
patch
|
blob
|
history
diff --git
a/arch/openrisc/include/asm/bitops.h
b/arch/openrisc/include/asm/bitops.h
index c001a5d1f6eee9e78684011e0785ec323f9757e4..c76a40901fdff1910053a04d120a1af4c0b4cdd3 100644
(file)
--- 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 */