浏览代码

openrisc/bitops: add hweightX defines

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Stefan Kristiansson 13 年之前
父节点
当前提交
f9882246a0
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/openrisc/include/asm/bitops.h

+ 4 - 0
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 */